git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6294f7c
)
Don't omit a faction from a system's report.
author
CMDR furrycat
<elite@furrycat.net>
Sat, 1 Jul 2017 20:06:36 +0000
(21:06 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Sat, 1 Jul 2017 20:06:36 +0000
(21:06 +0100)
plugin/faction/faction.py
patch
|
blob
|
history
diff --git
a/plugin/faction/faction.py
b/plugin/faction/faction.py
index
39acb80
..
75df3e2
100644
(file)
--- a/
plugin/faction/faction.py
+++ b/
plugin/faction/faction.py
@@
-924,6
+924,9
@@
class Faction(DBConnection):
report = self.null_report()
for row in cursor.fetchall():
if row['system_name'] != last_system:
+ line = self.format_report(report, id = id)
+ if line is not None:
+ lines.append(line)
if len(lines):
lines.append('** **')
await bot.say_many(destination, lines)