Forgot tracked faction_id.
authorCMDR furrycat <elite@furrycat.net>
Sun, 16 Apr 2017 11:54:37 +0000 (12:54 +0100)
committerCMDR furrycat <elite@furrycat.net>
Sun, 16 Apr 2017 11:54:37 +0000 (12:54 +0100)
plugin/faction/faction.py

index a4af47c..c0e041d 100644 (file)
@@ -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()