thewca / wca-workbook-assistant

Java application for processing Excel workbooks with WCA competition results for uploading them to the WCA database
7 stars 4 forks source link

Opening renamed TNoodle .zip files does not work. #75

Closed jazzthief81 closed 10 years ago

jazzthief81 commented 10 years ago

If the .zip file is renamed, the Workbook Assistant can not find the included .json file because it assumes that it has the same name.

Example: Using Scrambles for Nottingham 2014. OH Final.zip gives: Could not find Scrambles for Nottingham 2014. OH Final.json in C:\Users\Lars\Desktop\Scrambles for Nottingham 2014. OH Final.zip

The .json file contained in the .zip file is called Scrambles for 2014-02-20.json instead.

jfly commented 10 years ago

Yeah, I should have mentioned this, sorry. I couldn't decide what to do here. I think it's safe to say that there's only ever going to be one json file in the zip, so lets just pick one in the zip file arbitrarily?