Dont cache boss spawns
Some checks failed
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 10s
Build and push / Build-and-Push-Docker (push) Failing after 7s
Build and push / sync-argocd-app (push) Has been skipped

This commit is contained in:
Luke R 2024-11-10 15:48:00 -08:00
parent 207ba676a9
commit d193060cd8

View File

@ -25,7 +25,7 @@ def allowed_level_roll():
def query_tarkov_api(query):
headers = {"Content-Type": "application/json"}
headers = {"Content-Type": "application/json", "Cache-Control": "no-cache"}
return requests.post(
"https://api.tarkov.dev/graphql", headers=headers, json={"query": query}
).json()["data"]
@ -86,9 +86,6 @@ def get_tarkov_boss_info():
def compare_boss_spawns(known_spawns: dict, spawns_from_api: dict) -> dict:
print(known_spawns)
print("\n\n\n\n\n\n\n")
print(spawns_from_api)
changes = {} # To store the changes
# diff = DeepDiff(known_spawns, spawns_from_api, ignore_order=True, verbose_level=2)