From: CMDR furrycat Date: Thu, 11 May 2017 09:28:43 +0000 (+0100) Subject: Fix logging faction name in stale influence check. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=268d4a0504a4cb6b16a197ffc30dd11e524748a2;p=furrycat%2Fcatbot.git Fix logging faction name in stale influence check. --- diff --git a/plugin/faction/faction.py b/plugin/faction/faction.py index 0ab1857..d8bdedc 100644 --- a/plugin/faction/faction.py +++ b/plugin/faction/faction.py @@ -126,9 +126,11 @@ class Faction(DBConnection): def get_faction_name(self, id): cursor = self.query('select name from faction_names where id=?', [id]) + name = None for row in cursor.fetchone(): - yield row['name'] + name = row['name'] self.close_db() + return name def cache_system(self, *, id, name): cursor = self.query('insert or ignore into faction_systems values (?, ?)', [id, name])