donate-cpu-server.py: Fixed bug
This commit is contained in:
parent
c9db395d43
commit
098144fbe8
|
@ -249,7 +249,8 @@ def diffReport(resultsPath):
|
|||
with open(filename, 'rt') as f:
|
||||
data = json.loads(f.read())
|
||||
uploadedToday = data['date'] == today
|
||||
for messageId, sums in data['sums']:
|
||||
for messageId in data['sums']:
|
||||
sums = data['sums'][messageId]
|
||||
if messageId not in out:
|
||||
out[messageId] = [0, 0]
|
||||
out[messageId][0] += sums[OLD_VERSION]
|
||||
|
|
Loading…
Reference in New Issue