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: