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()