Fixed table and saved to database
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good
This commit is contained in:
parent
c4657259c9
commit
3f56ee7a81
1
db.json
1
db.json
@ -0,0 +1 @@
|
|||||||
|
{"_default": {"1": {"-Serial Number-": "1234", "Brand": "dell", "Grade": "7", "Name": "jb"}}}
|
3
main.py
3
main.py
@ -55,8 +55,9 @@ def main():
|
|||||||
if event == 'Add Computer':
|
if event == 'Add Computer':
|
||||||
new_computer = add_computer()
|
new_computer = add_computer()
|
||||||
existing_table = window["table"].get()
|
existing_table = window["table"].get()
|
||||||
existing_table+= list(new_computer.values())
|
existing_table.append( list(new_computer.values()))
|
||||||
window["table"].update(existing_table)
|
window["table"].update(existing_table)
|
||||||
|
db.insert(new_computer)
|
||||||
|
|
||||||
# Finish up by removing from the screen
|
# Finish up by removing from the screen
|
||||||
window.close()
|
window.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user