switched cron job to http request

This commit is contained in:
Computerboer
2024-10-19 14:43:21 +02:00
parent 5f6ae49922
commit a0e87927af
3 changed files with 32 additions and 15 deletions

View File

@@ -1,16 +1,16 @@
# import requests
from utils.auctionutils import getAuctionlocations
import requests
# from utils.auctionutils import getAuctionlocations
try:
getAuctionlocations('NL', True)
print('ran getauctions request successfull')
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):
# 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/refreshauction/NL')
if(response.status_code ==200):
print('ran getauctions request successfull')
else:
print('A error occurred while running the getauctions request')