prints emoji for current status weather

This commit is contained in:
Jason Ji 2017-09-21 23:51:23 -07:00
parent dd6db6b935
commit 2249e5a2d1

View File

@ -36,8 +36,9 @@ def get_weather(message):
location = forecast.get_location().get_name()
indicator = int(reg.get_reference_time(timeformat='iso')[11:13]) // 3
curr_stat = '{}{}{}{}{}'.format(' \n***Status in ', location, ':*** *',
reg.get_detailed_status().title(), '*\n')
curr_stat = '{}{}{}{}{}{}{}'.format(' \n***Status in ', location, ':*** *',
reg.get_detailed_status().title(), '*',
emojis.get(reg.get_detailed_status()), '\n')
curr_temp = '{}{}{}'.format('**Current Temperature:** *',
str(reg.get_temperature('fahrenheit').get('temp')),
'F*\n\n__**3 day forecast:**__\n')