Check In
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
cc23a9df5b
commit
4b5e3eb1f0
2
db.json
2
db.json
@ -1 +1 @@
|
|||||||
{"_default": {"1": {"Serial Number": "1", "Brand": "3", "Grade": "4", "Name": "5"}}}
|
{"_default": {"1": {"Serial Number": "1", "Brand": "3", "Grade": "8", "Name": "9"}}}
|
7
main.py
7
main.py
@ -136,7 +136,12 @@ def main():
|
|||||||
Table = window["table"].get()
|
Table = window["table"].get()
|
||||||
print(Table)
|
print(Table)
|
||||||
for row in Table:
|
for row in Table:
|
||||||
|
if SN == row[0]:
|
||||||
|
row[2] = G
|
||||||
|
row[3] = N
|
||||||
|
window["table"].update(Table)
|
||||||
|
query=Query()
|
||||||
|
db.update({"Grade": G, "Name": N}, query["Serial Number"] == SN)
|
||||||
|
|
||||||
|
|
||||||
# Finish up by removing from the screen
|
# Finish up by removing from the screen
|
||||||
|
Loading…
Reference in New Issue
Block a user