From 3fd731a5a22e99b649a7f9512c3291e752eedcba Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 15 Nov 2017 20:33:31 +0100 Subject: [PATCH] Introduced orphaned state between offline and deletion After 7 days of being offline, a router enters the orphaned state with a grey icon. It is only deleted after a longer period of 180 days. Signed-off-by: Adrian Schmutzler --- ffmap/mapnik/links_and_routers.xml | 4 ++ ffmap/routertools.py | 25 ++++++++-- ffmap/stattools.py | 6 ++- ffmap/web/api.py | 1 + ffmap/web/filters.py | 1 + ffmap/web/static/img/router_grey.svg | 71 ++++++++++++++++++++++++++++ ffmap/web/templates/statistics.html | 2 +- scripts/calcglobalstats.py | 1 + 8 files changed, 104 insertions(+), 7 deletions(-) create mode 100644 ffmap/web/static/img/router_grey.svg diff --git a/ffmap/mapnik/links_and_routers.xml b/ffmap/mapnik/links_and_routers.xml index b97010d..4c4dfe3 100644 --- a/ffmap/mapnik/links_and_routers.xml +++ b/ffmap/mapnik/links_and_routers.xml @@ -17,6 +17,10 @@ ([status] = 'unknown') + + ([status] = 'orphaned') + +