update
This commit is contained in:
parent
d5e18b2360
commit
a0b8383984
2 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue