Skip to content

Commit cd8c946

Browse files
authored
Update weather.py
1 parent 9a8841b commit cd8c946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

weather.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_weather_description():
100100

101101
tweets = api.search('weather today', geocode="39.8,-95.583068847656,2500km", count=10, lang="en")
102102
except tweepy.RateLimitError:
103-
time.sleep(60*15)
103+
time.sleep(6000*15)
104104
continue
105105

106106
for tweet in tweets :
@@ -124,8 +124,8 @@ def get_weather_description():
124124
pri = ('{} @{} Weather: Currently {} & {:.0f}°F. Expect a high of {:.0f}°F and a low of {:.0f}°F.'.format(tbaglanti, username, get_weather_description(), current_weather,temp_max, temp_min))
125125
print (pri)
126126
api.update_with_media(get_weather_icon(), status=pri)
127-
time.sleep(300)
127+
time.sleep(30000)
128128

129129

130130

131-
#
131+
#

0 commit comments

Comments
 (0)