Fix rescheduling

This commit is contained in:
DenialMC 2015-04-08 20:22:13 +03:00
parent 16dfbb003b
commit 4a01e12091

View file

@ -28,9 +28,10 @@ class DistributedReportMgrAI(DistributedObjectAI):
self.reports.append('%s|%s|%s|%s' % (timestamp, reporter.doId, avId, category))
def sendAllReports(self):
self.scheduleReport()
if not self.reports or config.GetString('accountdb-type', 'developer') != 'remote':
return
executeHttpRequestAndLog('report', reports=','.join(self.reports))
self.reports = []
self.scheduleReport()