cardinalitypuzzles / cardboard

Dashboard for managing puzzles and tracking status during a puzzle hunt
MIT License
31 stars 21 forks source link

Use the Drive folder ID for storing puzzle files instead of the same directory as the template #568

Closed rgossiaux closed 2 years ago

rgossiaux commented 2 years ago

Fixes #541

This lets us keep the template in a different location from the puzzle files, which is useful if we're potentially going to make a bunch of copies of the template in advance and need to distinguish those from puzzle sheets.

erwa commented 2 years ago

Thanks for fixing this.

Just curious, if the template happens to be in the same folder as the Drive folder, does the code still work (no error returned by the Google APIs)?

rgossiaux commented 2 years ago

Just curious, if the template happens to be in the same folder as the Drive folder, does the code still work (no error returned by the Google APIs)?

Yep, still works. This task is also async from the sheet creation one so even if something does go wrong for some reason, it won't interfere with sheet creation.

erwa commented 2 years ago

Thanks for confirming!