Commit Graph

5 Commits (149c318f5a8dea1d60bd01624c2638fcce2fd089)

Author SHA1 Message Date
Snakes bebc0f11ef Revert "delete useless file"
This reverts commit 5634330c66.

The empty __init__.py is _NOT_ useless. It makes Python treat `files`
as a module properly, and it breaks cli.py and the cronjobs if it is
deleted. Yes, we need the empty file.
2022-06-10 21:50:09 -04:00
Aevann1 5634330c66 delete useless file 2022-06-10 23:50:49 +02:00
Snakes acb3a0b338 Enable flask command, add cron target.
Adding an empty __init__.py, the imports-only cli.py, and setting
FLASK_APP in the environment are enough to get the `flask` command
to work. This will enable future changes, including database
migrations.

The proximate reason for the fix is to add a `flask cron` command
to run scheduled tasks within the application from cron. Specifically,
the lottery should be run from cron.
2022-06-07 06:57:26 -04:00
Aevann1 38a7632c25 gf 2021-10-21 15:06:17 +02:00
Yo Mama d6223a4891 fix pytest giving errors when used from the command line 2021-10-19 21:30:00 +02:00