Skip to content

Commit c2e501b

Browse files
committed
Fixed Updator error and reversed history order
1 parent df06c94 commit c2e501b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/VexTrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ def updateValues():
540540
levelTotalLabel["text"] = str(levelTotal) + " XP"
541541

542542
history.delete(*history.get_children())
543-
for h in config["history"]:
544-
history.insert("", "end", values=(h["description"], str(h["amount"]) + " XP", datetime.fromtimestamp(h["time"]).strftime("%d.%m.%Y %H:%M")))
543+
for i in range(len(config["history"]) - 1, -1, -1):
544+
history.insert("", "end", values=(config["history"][i]["description"], str(config["history"][i]["amount"]) + " XP", datetime.fromtimestamp(config["history"][i]["time"]).strftime("%d.%m.%Y %H:%M")))
545545

546546
updateGraph(config, epilogueVar.get(), graphPlot)
547547

src/updater.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def downloadNewVersion(versionString):
2121

2222
def restartProgram():
2323
os.startfile(EXE_FILENAME)
24-
root.destroy()
2524

2625
def checkNewVersion():
2726
response = requests.get("https://api.github.com/repos/" + GITHUB_USER + "/" + GITHUB_REPO + "/releases/latest")

0 commit comments

Comments
 (0)