def get_osf_statistics(time=None):
 time = get_previous_midnight(time)
 latest = None
 if (OSFWebsiteStatistics.objects.count() != 0):
  latest = OSFWebsiteStatistics.objects.latest('date')
  if (latest.date.date() == time.date()):
   return
  dates = get_list_of_dates(latest.date, time)
 else:
  dates = [time]
 for date in dates:
  get_days_statistics(date, latest)
  latest = OSFWebsiteStatistics.objects.latest('date')

def get_osf_statistics ( time = None ) : time = get_previous_midnight ( time ) latest = None if ( OSFWebsiteStatistics . objects . count ( ) != 0 ) : latest = OSFWebsiteStatistics . objects . latest ( 'date' ) if ( latest . date . date ( ) == time . date ( ) ) : return dates = get_list_of_dates ( latest . date , time ) else : dates = [ time ] for date in dates : get_days_statistics ( date , latest ) latest = OSFWebsiteStatistics . objects . latest ( 'date' )
get all dates since the latest .