From 73241c411615af7bdc33ea8d69f3dcd1633e67fa Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 12 Apr 2021 21:20:09 +0200 Subject: [PATCH] Split down files and add question about covid-test --- ftracker/core.py | 1 + web/index.html | 293 ++++------------------------------ web/main.js | 172 ++++++++++++++++++++ web/style.css | 79 ++++++++++ web/view.css | 121 ++++++++++++++ web/view.html | 403 +---------------------------------------------- web/view.js | 278 ++++++++++++++++++++++++++++++++ 7 files changed, 681 insertions(+), 666 deletions(-) create mode 100644 web/main.js create mode 100644 web/style.css create mode 100644 web/view.css create mode 100644 web/view.js diff --git a/ftracker/core.py b/ftracker/core.py index 50c1db8..e5cc1d0 100644 --- a/ftracker/core.py +++ b/ftracker/core.py @@ -77,6 +77,7 @@ def post_arrival(): now = datetime.utcnow().isoformat() + 'Z' db.insert({ 'name': name, + 'tested': data.get('tested') or False, 'room': data['room'], 'arrival': data.get('arrival') or now, 'departure': None diff --git a/web/index.html b/web/index.html index b1756b6..2d8722c 100644 --- a/web/index.html +++ b/web/index.html @@ -2,89 +2,10 @@ FTracker + - + -
+
+ This is a web app to track which people + were in the same rooms at which times in order to backtrace + potential viral infections.

+ If you've reached this page that either means your're + testing things or something has gone quite wrong with the\ + URL.
+ In the former case: Yay it works! In the latter you should + probably contact an admin or a dev nearby :(

+ Here are a few links for testing:
+ View Data, + Door Sign Generator, + Test Arrival, + Test Departure

+ © 2020 made by Oskar \ + for FaSTTUBe.
+ For source code & licensing see git repo +
+ -