ugggghhhhhh oops

This commit is contained in:
codl 2017-08-23 11:50:30 +02:00
parent f450eb2c02
commit 47ef77d0e2
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

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