bugfix: autoupdate

This commit is contained in:
James Woglom
2021-05-04 02:03:26 -04:00
parent f9952acaed
commit 25b8dee9d8
+1 -1
View File
@@ -36,7 +36,7 @@ def process_auto_update(tconnect, nightscout, time_start, time_end, pretend):
else:
added = process_time_range(tconnect, nightscout, time_start, time_end, pretend)
logger.info('Added %d items from process_time_range' % added)
if len(added) == 0:
if added == 0:
if last_event_index:
logger.error('An event index change was recorded, but no new data was found via the API. ' +
'If this error reoccurs, try restarting tconnectsync.')