Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: write a script to download a timetable from its id #10416

Closed
eckter opened this issue Jan 16, 2025 · 0 comments · Fixed by #10419
Closed

scripts: write a script to download a timetable from its id #10416

eckter opened this issue Jan 16, 2025 · 0 comments · Fixed by #10419

Comments

@eckter
Copy link
Contributor

eckter commented Jan 16, 2025

When we try to reproduce a bug, we often need to download the timetable content to re-import it elsewhere.

But most of the time (especially in STDCM context), we only have a timetable ID. The only way to fully export a timetable (that I know of) is to view the timetable in the front-end, but that requires knowing its project / study / scenario.

We could have a short script (to be placed in the script folder) that fetches everything. It may list the train IDs and then access /train_schedules.

Note: it should be able to handle authentification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant