made sure that the filecache keeps is not removed when auction refresh fails

This commit is contained in:
Computerboer
2024-10-13 21:12:33 +02:00
parent 28adf3dcf3
commit d295f18226
4 changed files with 34 additions and 21 deletions

View File

@@ -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')