This commit is contained in:
Nyako
2026-06-06 15:30:28 +03:00
parent 21e37776f9
commit b2b2145c37
3 changed files with 123 additions and 26 deletions
+9
View File
@@ -41,6 +41,15 @@ def get_size_edge(type_searсh: bool, file_list: list[str]):
result = max(file_list, key=lambda f: Path(f).stat().st_size)
return str(result)
def get_files_not_found(database, config):
all_db = database.get_all()
list_md5 = []
for one_post in all_db:
file_path = find_file(one_post["local_filename"], config["file"]["repos"], is_folder=False)
if file_path == None:
list_md5.append(one_post["md5"])
return list_md5
def calculate_analytic(database, config):
all_db = database.get_all()
explicit_db = database.get_search(["e"], [])