Don't mix up factions when reporting trends.
authorCMDR furrycat <elite@furrycat.net>
Sat, 1 Jul 2017 20:02:05 +0000 (21:02 +0100)
committerCMDR furrycat <elite@furrycat.net>
Sat, 1 Jul 2017 20:02:05 +0000 (21:02 +0100)
plugin/faction/faction.py

index a062587..39acb80 100644 (file)
@@ -916,7 +916,7 @@ class Faction(DBConnection):
     if system is not None:
       sql += ' and s.name=?'
       params.append(system)
-    sql += ' order by system_name, influence desc, pending, trend desc'
+    sql += ' order by system_name, influence desc, faction_name, pending, trend desc'
     cursor = self.query(sql, params)
     report = {}
     last_system = ''