Updated to have a cache that survives the restart of the application

Added ability to call the api to let the filecache refresh every night
This commit is contained in:
Computerboer
2023-10-22 14:24:05 +02:00
parent cf1f695971
commit 4f12de7b26
5 changed files with 48 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
from app import getAllAuctions
from models.location import Countrycode
import requests
result = getAllAuctions('NL');
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')