示例#1
0
def values():
    values = query_db('select * from records')
    return values
示例#2
0
def get_cases_for_date(date):
    values = query_db('select * from records where dateRep = ?',
                      [date[:2] + '/' + date[2:4] + '/' + date[4:8]])
    print('select * from records where dateRep = ?',
          date[:2] + '/' + date[2:4] + '/' + date[4:8])
    return values
示例#3
0
def get_country_cases_code(country_code):
    values = query_db('select * from records where countryterritoryCode = ?',
                      [country_code])
    print(country_code)
    return values
示例#4
0
def get_todays_cases():
    values = query_db('select * from records where dateRep = ?',
                      [date.today().strftime("%d/%m/%Y")])
    return values
示例#5
0
def get_country_cases(country):
    values = query_db(
        'select * from records where countriesAndTerritories = ?', [country])
    return values