edited common.php for website to show Swiss lines as well - #395
edited common.php for website to show Swiss lines as well#395luna-cant-code wants to merge 18 commits into
Conversation
Yeah mate, I don't know. That variable looks good to me, I didn't touch it o.O |
maybe it solves the problem, idk
|
i feel so dumb. thanks! |
|
Okay, the previous error isn't there after my contribution but now there's another one ._. |
|
I think it might have something to do with the missing Hafas values in the Swiss CSV file; that's basically the only "drastic" change I could think of resulting in this error |
|
i'm just gonna leave it for the day |
hopefully it succeeds now
|
It was worth a shot though! Thank you soooo much!!!! |
|
As much as I understood from my attempts, the problem after fixing the mismatching column count issue is the sorting by shortOperatorName. In the current code, both .csv files are merged first and then checked for the correct alphabetical order, which is incorrect afterwards. As a result, the error appears during the check for line-colors.csv, but not in the PHP code, which seems to be correct. To be precise, this error appeared after commit #c86e955: |
I'm gonna try sorting after combining. Don't know how but it should be possible! |
Uhm...I hope this works; I couldn't test it to be honest.
As you all know: I can't code, this is just me sending it and hoping for the best.
Added comments so you understand my thought process