mastodon instances: lower max popularity to 40

100 is really high considering forget's popularity
This commit is contained in:
codl 2017-08-28 15:37:49 +02:00
parent 31bdf87c89
commit 719c54b046
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ 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})
if biggest_instance.popularity > 40:
MastodonInstance.query.update({MastodonInstance.popularity: MastodonInstance.popularity * 40 / biggest_instance.popularity})
db.session.commit()