Upload new version: generate approval activity item #95

Merged
Oleg-Komarov merged 4 commits from upload-new-version-activity into main 2024-04-30 10:49:05 +02:00
Showing only changes of commit 39d4bef9cc - Show all commits

View File

@ -18,6 +18,7 @@ VERB2FLAGS = {
Verb.REPORTED_RATING: [Flag.MODERATOR],
Verb.REQUESTED_CHANGES: [Flag.AUTHOR, Flag.REVIEWER],
Verb.REQUESTED_REVIEW: [Flag.MODERATOR, Flag.REVIEWER],
Verb.UPLOADED_NEW_VERSION: [],
}
@ -41,7 +42,7 @@ def _create_notifications(
notifications = []
flags = VERB2FLAGS.get(instance.verb, None)
if not flags:
if flags is None:
logger.warning(f'no follower flags for verb={instance.verb}, nobody will be notified')
return