#NEWLINE# def update_week_statistic( self ) : #NEWLINE# #INDENT# 'Update week statistic' #NEWLINE# days = { self : self . _get_initial_statistic ( ) for day in range ( 0 , 7 ) } #NEWLINE# self . _fill_statistic_parts ( days , ( lambda task : task [ 'created' ] . weekday ( ) ) ) #NEWLINE# self . _calculate_statistic_percent ( days ) #NEWLINE# self . _recreate_statistic_obj ( WeekStatistic , 'days' , days )