def get_city_id():
    ' Workaround to get city id based on my schedule '
    region_code = {'TPHCM': 1580578, 'TPHCM2': 1566083, 'Hai Duong': 1581326, 'Tan An': 1567069}
    hour = int(datetime.datetime.now().strftime('%H'))
    weekday = datetime.datetime.now().strftime('%a')
    if (((hour >= 17) and (weekday == 'Fri')) or (weekday == 'Sat') or ((hour < 17) and (weekday == 'Sun'))):
        return region_code['Tan An']
    return region_code['Hai Duong']
Workaround to get city id based on my schedule
def get_city_id():
    '  '
    region_code = {'TPHCM': 1580578, 'TPHCM2': 1566083, 'Hai Duong': 1581326, 'Tan An': 1567069}
    hour = int(datetime.datetime.now().strftime('%H'))
    weekday = datetime.datetime.now().strftime('%a')
    if (((hour >= 17) and (weekday == 'Fri')) or (weekday == 'Sat') or ((hour < 17) and (weekday == 'Sun'))):
        return region_code['Tan An']
    return region_code['Hai Duong']