Added bat file to source correct venv and run script. Reorganized db connection stuff and added check to create db/tables if they don't exist. Uncommented email section and set mark_sent method to only be called if not testing.

This commit is contained in:
Dan Dembinski
2021-04-08 10:58:01 -04:00
parent 82ad72007c
commit 909b12ff6c
3 changed files with 15 additions and 12 deletions

2
CFFInvoice.bat Normal file
View File

@@ -0,0 +1,2 @@
@echo off
cmd /k "cd /d C:\Program Files (x86)\AKSESS\Storefront\CFFInvoice\Scripts & activate & cd /d C:\Program Files (x86)\AKSESS\Storefront\CFFInvoice & python main.py"