瀏覽代碼

Add city

master
djib 5 月之前
父節點
當前提交
4989275968
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      weather_to_freemobile.py

+ 1
- 1
weather_to_freemobile.py 查看文件

@@ -59,7 +59,7 @@ class WeatherToFreemobile():
fc = self.owm.daily_forecast(city, limit=number_of_days+1)
f = fc.get_forecast()

return_message = []
return_message = ["{} :".format(city)]
for weather in f:
weather_date = weather.get_reference_time('date')
date_diff = weather_date.date() - datetime.date.today()

Loading…
取消
儲存