djbrown / hbscorez

HbScorez is a web application, which processes handball game reports of diverse handball associations, districts, and leagues. It analyzes the player scores and displays the statistics and rankings.
https://hbscorez.de
MIT License
19 stars 3 forks source link

Problem with missing report folder #2

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hey, i have some problems with the import_scores.py file. The script will crash if the report folder is missing at line 91. I solve the problem by adding the following line of code above. os.makedirs(os.path.dirname(game.report_path()), exist_ok=True)

djbrown commented 6 years ago

Hello @airmax93,

thanks for the improvement! :ok_hand: I added your solution with commit 2bf7dd5e80801af1a5b7b85014a8d7a07d92f98d

https://github.com/djbrown/hbscorez/blob/2bf7dd5e80801af1a5b7b85014a8d7a07d92f98d/base/management/commands/import_scores.py#L35