sjstein / R8DIUM

A discord bot to manage individual run8 users
GNU General Public License v3.0
2 stars 0 forks source link

check operation when starting from scratch #64

Closed sjstein closed 8 months ago

sjstein commented 8 months ago

How does a blank csv perform?

jackfruh commented 8 months ago

Suggestion if you're not already doing this. Do not include any blank files, like a blank CSV. Instead, have code that looks for the CSV and creates the blank stub if it is missing. This does 2 things: 1 - it removes a dependency on one file. 2 - It codifies the structure within your code.z

Same for log files, etc..

sjstein commented 8 months ago

Suggestion if you're not already doing this. Do not include any blank files, like a blank CSV. Instead, have code that looks for the CSV and creates the blank stub if it is missing. This does 2 things: 1 - it removes a dependency on one file. 2 - It codifies the structure within your code.z

Same for log files, etc..

This is good - just implemented the creation of the db if it doesn't exist. testing now

sjstein commented 8 months ago

added function to create a csv if not found