Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
3 changed files with 5 additions and 3 deletions
Showing only changes of commit 76bedfb303 - Show all commits

View File

@ -149,7 +149,9 @@ get_maquette_url = _PI.get_maquette_url
get_portal_api_version = _PI.get_portal_api_version get_portal_api_version = _PI.get_portal_api_version
def get_inscrits_etape(code_etape, annee_apogee=None, ntrials=4, use_cache=True): def get_inscrits_etape(
code_etape, annee_apogee=None, ntrials=4, use_cache=True
) -> list[dict]:
"""Liste des inscrits à une étape Apogée """Liste des inscrits à une étape Apogée
Result = list of dicts Result = list of dicts
ntrials: try several time the same request, useful for some bad web services ntrials: try several time the same request, useful for some bad web services

View File

@ -132,7 +132,7 @@ def formsemestre_synchro_etuds(
if isinstance(etuds, str): if isinstance(etuds, str):
etuds = etuds.split(",") # vient du form de confirmation etuds = etuds.split(",") # vient du form de confirmation
elif isinstance(etuds, int): elif isinstance(etuds, int):
etuds = [etuds] etuds = [str(etuds)]
if isinstance(inscrits_without_key, int): if isinstance(inscrits_without_key, int):
inscrits_without_key = [inscrits_without_key] inscrits_without_key = [inscrits_without_key]
elif isinstance(inscrits_without_key, str): elif isinstance(inscrits_without_key, str):

View File

@ -4,7 +4,7 @@
emulating "Apogee" Web service emulating "Apogee" Web service
Usage: Usage:
/opt/scodoc/tools/fakeportal/fakeportal.py /opt/scodoc/tools/fakeportal/fakeportal.py
et régler "URL du portail" sur la page de *Paramétrage* du département testé, et régler "URL du portail" sur la page de *Paramétrage* du département testé,
typiquement: http://localhost:8678 typiquement: http://localhost:8678