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

Filename mismatch #50

Closed
rml1997 opened this issue Jun 21, 2019 · 6 comments
Closed

Filename mismatch #50

rml1997 opened this issue Jun 21, 2019 · 6 comments
Assignees

Comments

@rml1997
Copy link

rml1997 commented Jun 21, 2019

The filenames for the files from ATOC seem to be ignored. They are:
Timetable RJTTC345.ZIP
Routeing RJRG0281.ZIP - works
Fares RJFAC280.ZIP

Line 64 of DownloadCommands.ts seems to be the culprit:
const lastRefresh = dir.findIndex(i => i.filename.charAt(4) === "F" || i.filename.startsWith("RJRG"));

@linusnorton linusnorton self-assigned this Jun 21, 2019
@linusnorton
Copy link
Collaborator

I believe the C files are incremental files. dtd2mysql will try to find the last full refresh ("F"), reset the DB tables and then apply incremental updates.

@rml1997
Copy link
Author

rml1997 commented Jun 25, 2019

Any idea how to get the last full refresh? It would be nice of them to provide that when you first sign up!

@linusnorton
Copy link
Collaborator

When I log into data.atoc.org I get ttis312.zip for timetables and RJFAF312.zip for fares

@linusnorton
Copy link
Collaborator

I'd recommend you ask about signing up for DTD

@rml1997
Copy link
Author

rml1997 commented Jun 25, 2019

I have signed up. I presume I'll get the F files when one is released or I prompt them, which I just have :)

@rml1997
Copy link
Author

rml1997 commented Jun 28, 2019

It turns out they send you only test files initially. You then need to log in via browser to confirm the test files have been received ok before they send you real files.

@rml1997 rml1997 closed this as completed Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants