Upload new version: generate approval activity item #95
@ -18,6 +18,7 @@ VERB2FLAGS = {
|
|||||||
Verb.REPORTED_RATING: [Flag.MODERATOR],
|
Verb.REPORTED_RATING: [Flag.MODERATOR],
|
||||||
Verb.REQUESTED_CHANGES: [Flag.AUTHOR, Flag.REVIEWER],
|
Verb.REQUESTED_CHANGES: [Flag.AUTHOR, Flag.REVIEWER],
|
||||||
Verb.REQUESTED_REVIEW: [Flag.MODERATOR, Flag.REVIEWER],
|
Verb.REQUESTED_REVIEW: [Flag.MODERATOR, Flag.REVIEWER],
|
||||||
|
Verb.UPLOADED_NEW_VERSION: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -41,7 +42,7 @@ def _create_notifications(
|
|||||||
notifications = []
|
notifications = []
|
||||||
|
|
||||||
flags = VERB2FLAGS.get(instance.verb, None)
|
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')
|
logger.warning(f'no follower flags for verb={instance.verb}, nobody will be notified')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user