Skip to content

Commit 29a8c32

Browse files
committed
Fixed bug
1 parent b6d40fe commit 29a8c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coronavirus tracker bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# Creation of the actual interface using authentication
1717
api = tweepy.API(auth)
1818

19-
# Retrievel of API
20-
response = requests.get("https://coronavirus-tracker-api.herokuapp.com/all")
21-
2219
# Infinite loop, tweets once every 24 hours
2320
while True:
2421
try:
22+
# Retrievel of API
23+
response = requests.get("https://coronavirus-tracker-api.herokuapp.com/all")
24+
2525
# Fetches JSON
2626
data = response.json()
2727
# Fetches the 'latest' node from the API

0 commit comments

Comments
 (0)