def storeRow(location, row, country):
 statistic = row[2].strip()
 if (statistic == 'New cases'):
  return
 value = row[3]
 if (value in (None, '', ' ')):
  value = None
 else:
  value = int(value)
 date_t = xlrd.xldate_as_tuple(row[4], 0)
 date = ('%d-%02d-%02d' % (date_t[0], date_t[1], date_t[2]))
 source = row[5].strip()
 org = get_org_from_db(source, country)
 if (row[6] != None):
  source_url = row[6].strip()
 else:
  source_url = ''
 if (statistic not in statistics):
  statistics[statistic] = {}
 if (location not in statistics[statistic]):
  statistics[statistic][location] = {}
 statistics[statistic][location][date] = [value, org, source_url]

def storeRow ( location , row , country ) : statistic = row [ 2 ] . strip ( ) if ( statistic == 'New cases' ) : return value = row [ 3 ] if ( value in ( None , '' , ' ' ) ) : value = None else : value = int ( value ) date_t = xlrd . xldate_as_tuple ( row [ 4 ] , 0 ) date = ( '%d-%02d-%02d' % ( date_t [ 0 ] , date_t [ 1 ] , date_t [ 2 ] ) ) source = row [ 5 ] . strip ( ) org = get_org_from_db ( source , country ) if ( row [ 6 ] != None ) : source_url = row [ 6 ] . strip ( ) else : source_url = '' if ( statistic not in statistics ) : statistics [ statistic ] = { } if ( location not in statistics [ statistic ] ) : statistics [ statistic ] [ location ] = { } statistics [ statistic ] [ location ] [ date ] = [ value , org , source_url ]
store a row in our data structure .