Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Supervinh committed Dec 5, 2024
1 parent 26abf38 commit 5a7c752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

INTERVALLE_AUTOREFRESH = 3 * 60 # 3 minutes
API_TEMPS_ATTENTE_BASE_URL = "https://api.opt.nc/temps-attente-agences/"
API_TEMPS_ATTENTE_BASE_URL_RAPIDAPI = "https://temps-attente-en-agence.p.rapidapi.com/"
#API_TEMPS_ATTENTE_BASE_URL_RAPIDAPI = "https://temps-attente-en-agence.p.rapidapi.com/"

# Obtenir la datetime dans le fuseau horaire de NC
def get_current_time():
Expand Down Expand Up @@ -124,7 +124,7 @@ def fetch_agence_historique(id_agence,debut,fin):
"debut": debut,
"fin": fin
}
response = requests.get(API_TEMPS_ATTENTE_BASE_URL_RAPIDAPI + f"agences/{id_agence}/historique", headers=headers_rapidapi, params=params)
response = requests.get(API_TEMPS_ATTENTE_BASE_URL + f"agences/{id_agence}/historique", headers=headers, params=params)
if response.status_code == 200:
historique = response.json()
# Récupération des timestamps et des temps d'attente max en minutes
Expand Down

0 comments on commit 5a7c752

Please sign in to comment.