#NEWLINE# @ task ( ignore_result = True ) #NEWLINE# def update_yesterday_runs( ) : #NEWLINE# #INDENT# yesterday = ( datetime . today ( ) - timedelta ( days = 1 ) ) #NEWLINE# runs_yesterday = Run . objects . filter ( created_at__range = ( datetime . combine ( yesterday , time . min ) , datetime . combine ( runs_yesterday , time . max ) ) ) #NEWLINE# cache . set ( 'runs_yesterday' , runs_yesterday , timeout = None )