Skip to content

Commit cd24022

Browse files
committed
apply bonuses
1 parent 55bb4b3 commit cd24022

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

kwltracking.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ def count_files(zone='graded',practice =False):
5353
# filter by current files
5454
# check the whole file table for each present file, then sum and bool by taking all nonzero
5555
incomplete_dates = []
56+
bonus_counts =0
5657
missing_by_date = {}
5758
complete_count = 0
59+
bonus_dates = ['2022-12-05','2022-12-07','2022-12-12']
5860
for date, ddf in df_filt.groupby('date'):
5961
date_set = set(ddf['file'].to_list())
6062
missing = date_set-cur_files
@@ -63,14 +65,21 @@ def count_files(zone='graded',practice =False):
6365
missing_by_date[date] = ' '.join(list(missing))
6466
else:
6567
complete_count +=1
68+
if date in bonus_dates:
69+
bonus_counts +=1
6670

6771

6872
click.echo(str(complete_count)+ ' dates complete')
6973
click.echo('-----------------------------------')
7074
click.echo('dates missing 1 or more files: ' + ' '.join(incomplete_dates))
7175
click.echo('-----------------------------------')
7276
click.echo('\n'.join([' : '.join([d,l]) for d,l in missing_by_date.items()]))
73-
77+
click.echo('-----------------------------------')
78+
click.echo(str(bonus_counts)+ ' bonus dates complete')
79+
click.echo('-----------------------------------')
80+
click.echo(str(bonus_counts+complete_count)+ 'effective dates complete')
81+
82+
return
7483

7584

7685

0 commit comments

Comments
 (0)