From: CMDR furrycat Date: Sun, 16 Apr 2017 11:54:37 +0000 (+0100) Subject: Forgot tracked faction_id. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=cde1922e99f35ac796bb7708596471f75cef2233;p=furrycat%2Fcatbot.git Forgot tracked faction_id. --- diff --git a/plugin/faction/faction.py b/plugin/faction/faction.py index a4af47c..c0e041d 100644 --- a/plugin/faction/faction.py +++ b/plugin/faction/faction.py @@ -71,7 +71,7 @@ class Faction(DBConnection): def get_tracked_factions(self): now = self.now() - cursor = self.query("select id, name, server_id, member_id, channel_id, newsflash_channel_id, interval, name, state_id, updated from factions where updated is null or updated < ? - interval and bot_id=?", [now, client.user.id]) + cursor = self.query("select id, name, server_id, member_id, channel_id, newsflash_channel_id, interval, faction_id, name, state_id, updated from factions where updated is null or updated < ? - interval and bot_id=?", [now, client.user.id]) for row in cursor.fetchall(): yield TrackedFaction(row) self.close_db()