diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-10-09 21:49:26 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-10-09 21:49:26 +0100 |
commit | 75bab28d8250c6287b6ee8d3bfd21751badec2bd (patch) | |
tree | db55d5619fad741c8d59172baf066c79d7b2c730 /app/tasks/forumtasks.py | |
parent | 328d05bdf647effac1cdb444e36a0debb5d93a02 (diff) | |
download | cheatdb-75bab28d8250c6287b6ee8d3bfd21751badec2bd.tar.xz |
Add celery beat for topic import
Diffstat (limited to 'app/tasks/forumtasks.py')
-rw-r--r-- | app/tasks/forumtasks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py index 338ffa2..dc8be7f 100644 --- a/app/tasks/forumtasks.py +++ b/app/tasks/forumtasks.py @@ -138,4 +138,7 @@ def importTopicList(): topic.views = info["views"] topic.created_at = info["date"] + for p in Package.query.all(): + p.recalcScore() + db.session.commit() |