home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Day.prev_date/Day.next_date and use them for navigation in Day page.
[plomtask]
/
run.py
diff --git
a/run.py
b/run.py
index 33346375ea8ad03a19b43ce8f26e0c3e8498bbbd..31d11cee0534b5ae68c3bf84692f61b87b9e7481 100755
(executable)
--- a/
run.py
+++ b/
run.py
@@
-8,7
+8,6
@@
from plomtask.db import DatabaseFile
PLOMTASK_DB_PATH = environ.get('PLOMTASK_DB_PATH')
HTTP_PORT = 8082
PLOMTASK_DB_PATH = environ.get('PLOMTASK_DB_PATH')
HTTP_PORT = 8082
-TEMPLATES_DIR = 'templates'
DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
@@
-25,8
+24,7
@@
if __name__ == '__main__':
else:
print('Not recognizing reply as "yes".')
raise HandledException('Cannot run without database.')
else:
print('Not recognizing reply as "yes".')
raise HandledException('Cannot run without database.')
- server = TaskServer(TEMPLATES_DIR, db_file,
- ('localhost', HTTP_PORT), TaskHandler)
+ server = TaskServer(db_file, ('localhost', HTTP_PORT), TaskHandler)
print(f'running at port {HTTP_PORT}')
try:
server.serve_forever()
print(f'running at port {HTTP_PORT}')
try:
server.serve_forever()