diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-09-16 17:51:03 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-09-16 17:51:03 +0100 |
| commit | 92fb54556ad0409a519c308e7e34b63e11621903 (patch) | |
| tree | 4aec0272914cdb4c9215a961a65e4483c7b18fb4 /app/blueprints/threads | |
| parent | e81eb9c8d58c193f3480bdab68fa73556c8e83f3 (diff) | |
| download | cheatdb-92fb54556ad0409a519c308e7e34b63e11621903.tar.xz | |
Implement package states for easier reviews
Diffstat (limited to 'app/blueprints/threads')
| -rw-r--r-- | app/blueprints/threads/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 6a2fdb8..5380389 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -298,6 +298,10 @@ def new(): if is_review_thread: package.review_thread = thread + if package.state == PackageState.READY_FOR_REVIEW and current_user not in package.maintainers: + package.state = PackageState.CHANGES_NEEDED + + notif_msg = "New thread '{}'".format(thread.title) if package is not None: addNotification(package.maintainers, current_user, notif_msg, thread.getViewURL(), package) |
