mirror of
https://github.com/codl/forget
synced 2025-01-06 12:17:28 +01:00
oh no oops
This commit is contained in:
parent
40fbea082f
commit
a52a9c2bb5
2
model.py
2
model.py
@ -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
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user