diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-09 04:32:13 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-09 04:32:13 +0100 |
| commit | ac7adde4b1a5af0b93c1dd38e68717c31cbcf2a1 (patch) | |
| tree | cc26639fbe2a5851321e5641970722cabcf75414 /app/blueprints/packages | |
| parent | d0aecd0ee59663ac81733ff8087847106c7ba4cc (diff) | |
| download | cheatdb-ac7adde4b1a5af0b93c1dd38e68717c31cbcf2a1.tar.xz | |
Add score bonus to reviews
Diffstat (limited to 'app/blueprints/packages')
| -rw-r--r-- | app/blueprints/packages/reviews.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/blueprints/packages/reviews.py b/app/blueprints/packages/reviews.py index 114afae..74070fc 100644 --- a/app/blueprints/packages/reviews.py +++ b/app/blueprints/packages/reviews.py @@ -82,6 +82,8 @@ def review(package): db.session.commit() + package.recalcScore() + notif_msg = None if was_new: notif_msg = "New review '{}' on package {}".format(form.title.data, package.title) |
