cursor = self.query('update faction_influence set timestamp=? where checksum=? and eddb_id=? and faction_id>0', [timestamp, checksum, system_id])
if not cursor.rowcount:
log.warning('Failed to update timestamp for {} with checksum {}'.format(system, checksum))
+ self.dbh.commit()
else:
+ self.dbh.commit()
for system, channel in announce.items():
await self.report_faction_influence(channel, system = system, update = True, yelp_if_no_data = False)
- self.dbh.commit()
self.close_db()
return True