From 268d4a0504a4cb6b16a197ffc30dd11e524748a2 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Thu, 11 May 2017 10:28:43 +0100 Subject: [PATCH] Fix logging faction name in stale influence check. --- plugin/faction/faction.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]) -- 2.7.4