forked from ScoDoc/DocScoDoc
Fix path for (fake) XML etapes
This commit is contained in:
parent
a060cefbe8
commit
42ae898505
@ -99,7 +99,7 @@ class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||
print(query_components, file=sys.stderr)
|
||||
|
||||
if "etapes" in self.path.lower():
|
||||
self.path = "etapes.xml"
|
||||
self.path = str(Path(script_dir / "etapes.xml").relative_to(Path.cwd()))
|
||||
elif "scodocEtudiant" in self.path:
|
||||
# 2 forms: nip=xxx or etape=eee&annee=aaa
|
||||
if "nip" in query_components:
|
||||
|
Loading…
Reference in New Issue
Block a user