Add celery beat for topic import

This commit is contained in:
rubenwardy
2018-10-09 21:49:26 +01:00
parent 328d05bdf6
commit 75bab28d82
3 changed files with 13 additions and 0 deletions

View File

@@ -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()