feat: basic download tracking in db

This commit is contained in:
Yannik Schmidt
2025-02-15 19:43:20 +01:00
parent 0d4fd8852d
commit e35803ce1a
3 changed files with 71 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ import jinja_helper
import threading
import sys
import tkinter
import statekeeper
class Software:
@@ -131,7 +132,10 @@ class Software:
except IndexError:
print("No main_dir:", path)
raise AssertionError("No main_dir for this software")
statekeeper.log_begin_download(remote_file)
local_file = self.backend.get(remote_file, self.cache_dir, wait=True)
statekeeper.log_end_download(remote_file)
# execute or unpack #
if local_file.endswith(".exe"):