From a0b83839842e84d12c2035b498a540bd54ad0ad7 Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Thu, 26 Sep 2024 23:34:44 +0200 Subject: [PATCH] update --- src/run.py | 2 +- src/sync_gitea.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/run.py b/src/run.py index 7000de4..8ae4da3 100644 --- a/src/run.py +++ b/src/run.py @@ -78,7 +78,7 @@ def validate_downloaded_files(post_mattermost_hint=True): if metadata is not None: is_new_file, new_file_info = db.mark_file_valid(file_id, metadata) if is_new_file: - print(f"new file found: {new_file_info["source_url"]}") + mattermost_communication.report_newly_found_file(file_info) else: changed, new_file_info = db.mark_file_invalid(file_id) if changed and post_mattermost_hint: diff --git a/src/sync_gitea.py b/src/sync_gitea.py index 2266a02..051d5c3 100644 --- a/src/sync_gitea.py +++ b/src/sync_gitea.py @@ -120,7 +120,6 @@ def sync_file(repo, api_instance, file_info): title=f"[CodiMD sync] Add document {sync_to}", ), ) - mattermost_communication.report_newly_found_file(file_info) else: print(" Merge request was already open.") else: