fix month count

This commit is contained in:
j 2019-11-21 08:31:25 +01:00
parent 377386df46
commit 01be5e09f9

View file

@ -113,7 +113,7 @@ def update_month(year, month, month_count, film_counts):
film_counts[key] = film_count film_counts[key] = film_count
save_film_counts(film_counts) save_film_counts(film_counts)
if days_total != month_count: if days_total != month_count:
print('!! month and days don\'t add up: %s month vs %s days total' % (month_total, days_total)) print('!! month and days don\'t add up: %s month vs %s days total' % (month_count, days_total))
else: else:
r = update_ids(year, month) r = update_ids(year, month)
key = '%04d-%02d' % (year, month) key = '%04d-%02d' % (year, month)