JAMESPARK3 commited on
Commit
31bd761
·
verified ·
1 Parent(s): 98c025e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ def get_weather_data():
212
  response = requests.get(url, timeout=10) # timeout 추가
213
  response.raise_for_status()
214
 
215
- data = xmltodict.parse(response_text)
216
  result = data['SeoulRtd.citydata']['CITYDATA']['WEATHER_STTS']['WEATHER_STTS']
217
 
218
  return result
 
212
  response = requests.get(url, timeout=10) # timeout 추가
213
  response.raise_for_status()
214
 
215
+ data = xmltodict.parse(response.text)
216
  result = data['SeoulRtd.citydata']['CITYDATA']['WEATHER_STTS']['WEATHER_STTS']
217
 
218
  return result