diff --git a/web/app.py b/web/app.py index e2a88cb..25adc08 100644 --- a/web/app.py +++ b/web/app.py @@ -648,7 +648,7 @@ def hbnet_web_service(): field_2 = '''
By using ''' + title + ''', you agree not to do anything malicious. You agree to use the system with respect and courtesy to others. Please operate with the laws of your country.
+By using ''' + title + ''', you agree not to do anything malicious. You agree to use the system with respect and courtesy to others. Please operate within the laws of your country.
Welcome to ' + title + '
.', + field_2 = 'Welcome to ' + title + '.
', time = datetime.datetime.utcnow() ) db.session.add(home_entry_add) @@ -764,6 +764,12 @@ def hbnet_web_service(): db.session.commit() + # Use this to pass variables into Jinja2 templates + @app.context_processor + def global_template_config(): + return dict(global_config={'mode': mode}) + + # The Home page is accessible to anyone @app.route('/') def home_page(): @@ -886,51 +892,52 @@ def hbnet_web_service(): """, icon=folium.Icon(color="blue", icon="record"), tooltip='' + i.callsign + '').add_to(f_map) - for l in peer_l: -## print(time.time() - l.time().total_seconds() > 3600 ) -## print(datetime.datetime.now() - timedelta(days = 2)) -## if datetime.datetime.now() - timedelta(days = 2) > timedelta(days = 2): -## print('greater') -## folium.Marker([float(l[1][1]), float(l[1][2])], popup=''' -##
-
|
-
+
|
+