From 23794acebe725753a3e58855d70db2ddd90cdd34 Mon Sep 17 00:00:00 2001 From: codl Date: Sat, 2 Sep 2017 20:30:37 +0200 Subject: [PATCH] fix: mastodon.py didnt commit after deleting an invalid token --- lib/mastodon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mastodon.py b/lib/mastodon.py index 99ee15d..378be9f 100644 --- a/lib/mastodon.py +++ b/lib/mastodon.py @@ -87,6 +87,7 @@ def get_api_for_acc(account): sentry.captureMessage( 'Mastodon auth revoked or incorrect', extra=locals()) db.session.delete(token) + db.session.commit() continue return api