metrics: ingest_dashboard(): replace max_revision duplicate variable nonsense

Replaces commit 437f46a4cb156d44baf9f2c18a4d702240936836.
This commit is contained in:
Jimmy Berry 2018-06-20 15:21:52 -05:00
parent adaeac7714
commit ed23a53196

View File

@ -483,9 +483,7 @@ def ingest_dashboard(api):
count = 0
points = []
max_revision = 0
for made, revision in sorted(index.items()):
max_revision = revision
if not past:
if revision == revision_last:
past = True
@ -523,7 +521,7 @@ def ingest_dashboard(api):
client.write_points(points, 's')
count += len(points)
print('last revision processed: {}'.format(max_revision))
print('last revision processed: {}'.format(revision if len(index) else 'none'))
return count