You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.py
+4-4
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ def getInputForGameEntry():
27
27
defaddEntry():
28
28
29
29
# GL.write({name : GameEntry}, end = "\n")
30
-
gameEntry=getInputForGameEntry
30
+
gameEntry=getInputForGameEntry()
31
31
SQLib.addVals(gameEntry)
32
32
33
33
defGetRating():
@@ -51,10 +51,10 @@ def UpdateRec():
51
51
SQLib.updateRec(rowIDToBeUpdated, updatedInfo)
52
52
print("Record Successfully updated!")
53
53
54
-
defDelRec():
55
-
SQLib.showRowIDAndName()
54
+
defDelRec():
55
+
SQLib.show_all()
56
56
print("Enter the rowid of the game you want to delete: ", sep="")
57
-
rowIDToBeDeleted=GetIntFromUser()
57
+
rowIDToBeDeleted=GetIntFromUser()#add a way to detect values out of range
58
58
answer=""
59
59
print(f"Are you sure, you want to delete entry number {rowIDToBeDeleted} (y/n):", end="\n")
60
60
whileanswer.lower() !="y"andanswer.lower() !="n": #Very important! You learnt how to implement a function that requires a correct input. First take the input, make sure its correct; then implement it.
0 commit comments