diff --git a/tasks.py b/tasks.py index 4448be6..2f6d8bb 100644 --- a/tasks.py +++ b/tasks.py @@ -131,7 +131,7 @@ def periodic_cleanup(): # normalise mastodon instance popularity scores biggest_instance = MastodonInstance.query.order_by(db.desc(MastodonInstance.popularity)).first() if biggest_instance.popularity > 100: - MastodonInstance.query.update({MastodonInstance.popularity: MastodonInstance.popularity * 100 / biggest_instance.popularity}, syn) + MastodonInstance.query.update({MastodonInstance.popularity: MastodonInstance.popularity * 100 / biggest_instance.popularity}) db.session.commit()