made sure that the filecache keeps is not removed when auction refresh fails
This commit is contained in:
19
runapi.py
19
runapi.py
@@ -1,7 +1,16 @@
|
||||
import requests
|
||||
# import requests
|
||||
from utils.auctionutils import getAuctionlocations
|
||||
|
||||
response = requests.get('https://api.auctionviewer.ikbenhenk.nl//v2/auction/NL')
|
||||
if(response.status_code ==200):
|
||||
try:
|
||||
getAuctionlocations('NL', True)
|
||||
print('ran getauctions request successfull')
|
||||
else:
|
||||
print('A error occurred while running the getauctions request')
|
||||
except Exception as e:
|
||||
print('A error occurred while running the getauctions request')
|
||||
print(e)
|
||||
|
||||
|
||||
# response = requests.get('https://api.auctionviewer.ikbenhenk.nl//v2/auction/NL')
|
||||
# if(response.status_code ==200):
|
||||
# print('ran getauctions request successfull')
|
||||
# else:
|
||||
# print('A error occurred while running the getauctions request')
|
||||
Reference in New Issue
Block a user