From: Mint <> Date: Thu, 10 Nov 2022 14:10:56 +0000 (+0300) Subject: Fix order X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb13ff8f06e62c3240e98e42b69bde5efc21126f;p=fba.git Fix order --- diff --git a/api.py b/api.py index 17323be..68be9f2 100644 --- a/api.py +++ b/api.py @@ -42,7 +42,7 @@ def blocked(domain: str = None, reason: str = None): c.execute("select blocker, blocked, block_level, reason from blocks where blocked = ? or blocked = ? or blocked = ? or blocked = ? or blocked = ? or blocked = ?", (domain, "*." + domain, wildchar, get_hash(domain), punycode, "*." + punycode)) else: - c.execute("select blocker, blocked, block_level, reason from blocks where reason like ? and reason != ''", ("%"+reason+"%",)) + c.execute("select blocker, blocked, reason, block_level from blocks where reason like ? and reason != ''", ("%"+reason+"%",)) blocks = c.fetchall() conn.close()