mastodon instances: lower max popularity to 40
100 is really high considering forget's popularity
This commit is contained in:
parent
31bdf87c89
commit
719c54b046
4
tasks.py
4
tasks.py
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue