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:
10
runapi.py
10
runapi.py
@@ -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')
|
||||
Reference in New Issue
Block a user