This commit is contained in:
Xander Bil 2024-09-26 23:34:44 +02:00
parent d5e18b2360
commit a0b8383984
No known key found for this signature in database
GPG key ID: EC9706B54A278598
2 changed files with 1 additions and 2 deletions

View file

@ -78,7 +78,7 @@ def validate_downloaded_files(post_mattermost_hint=True):
if metadata is not None: if metadata is not None:
is_new_file, new_file_info = db.mark_file_valid(file_id, metadata) is_new_file, new_file_info = db.mark_file_valid(file_id, metadata)
if is_new_file: if is_new_file:
print(f"new file found: {new_file_info["source_url"]}") mattermost_communication.report_newly_found_file(file_info)
else: else:
changed, new_file_info = db.mark_file_invalid(file_id) changed, new_file_info = db.mark_file_invalid(file_id)
if changed and post_mattermost_hint: if changed and post_mattermost_hint:

View file

@ -120,7 +120,6 @@ def sync_file(repo, api_instance, file_info):
title=f"[CodiMD sync] Add document {sync_to}", title=f"[CodiMD sync] Add document {sync_to}",
), ),
) )
mattermost_communication.report_newly_found_file(file_info)
else: else:
print(" Merge request was already open.") print(" Merge request was already open.")
else: else: