Fixed table and saved to database
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good

This commit is contained in:
Josh Biltonen 2022-09-04 18:57:27 -07:00
parent c4657259c9
commit 3f56ee7a81
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
{"_default": {"1": {"-Serial Number-": "1234", "Brand": "dell", "Grade": "7", "Name": "jb"}}}

View File

@ -55,8 +55,9 @@ def main():
if event == 'Add Computer':
new_computer = add_computer()
existing_table = window["table"].get()
existing_table+= list(new_computer.values())
existing_table.append( list(new_computer.values()))
window["table"].update(existing_table)
db.insert(new_computer)
# Finish up by removing from the screen
window.close()