Add celery beat for topic import
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user