diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-20 00:03:07 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-20 00:03:07 +0800 |
commit | 21880c47ba381221b9a269c0aa2e83b11d8eb945 (patch) | |
tree | 33a53fb6382b5163e98584dd649e02ad7ab998b8 /jimbrella/web.py | |
parent | eedc26ed8b2848487164614e49a4b5647d24c7d1 (diff) |
More work on web console
Diffstat (limited to 'jimbrella/web.py')
-rw-r--r-- | jimbrella/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jimbrella/web.py b/jimbrella/web.py index 6446329..006c66c 100644 --- a/jimbrella/web.py +++ b/jimbrella/web.py @@ -1,6 +1,6 @@ from flask import Flask, request, render_template from .database import Database -from .utils import group_by_status +from .utils import group_by_status, find_overdue from .config import * db = Database(DATABASE_PATH) @@ -17,7 +17,7 @@ def index(): total=len(umbrellas), available=len(statuses["available"]), lent=len(statuses["lent"]), - overdue="Not Yet Implemented", + overdue=len(find_overdue(umbrellas)), ) |