Add the file_md5 to the download function so it can cache and verify

This commit is contained in:
Stephan Kulow
2022-11-02 13:35:45 +01:00
parent a1ead29734
commit 05cf792b26
3 changed files with 11 additions and 4 deletions

View File

@@ -216,8 +216,7 @@ class DBRevision:
to_delete = []
if current_rev:
old_files = {
e["name"]: f"{entry['md5']}-{entry['size']}"
for e in current_rev.files_list(db)
e["name"]: f"{e['md5']}-{e['size']}" for e in current_rev.files_list(db)
}
else:
old_files = dict()