From ca558d57e9f8606fd8dc8322a4b957b5ad0a4ae3 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 19 Sep 2022 23:15:14 +0800 Subject: [PATCH] fix/fix emoji count typeerror --- BDSM/toot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BDSM/toot.py b/BDSM/toot.py index de8e012..6ade9e1 100644 --- a/BDSM/toot.py +++ b/BDSM/toot.py @@ -120,7 +120,7 @@ def archive_toot(url): count = content.count(counter) if not is_reblog: - data=Emoji.query.filter_by(shortcode=shortcode).first() + data=Emoji.query.filter_by(shortcode=shortcode, acct=acct).first() if data is None: emoji_data = Emoji(shortcode=shortcode, acct=acct,