2
0
mirror of https://github.com/codl/forget synced 2025-01-06 12:17:28 +01:00

oh no oops

This commit is contained in:
codl 2017-08-23 11:45:46 +02:00
parent 40fbea082f
commit a52a9c2bb5
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
2 changed files with 1 additions and 2 deletions

View File

@ -225,4 +225,4 @@ class MastodonInstance(db.Model):
popularity = db.Column(db.Float, server_default='10', nullable=False)
def bump(self):
self.popularity = self.popularity + 1
self.popularity = (self.popularity or 10) + 1

View File

@ -217,7 +217,6 @@ def api_viewer_timers():
@app.route('/login/mastodon', methods=('GET', 'POST'))
def mastodon_login_step1():
instances = MastodonInstance.query.filter(MastodonInstance.popularity > 1).order_by(db.desc(MastodonInstance.popularity)).limit(16)
if request.method == 'GET':