Skip to content
Snippets Groups Projects
Commit 56b6a2f2 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: revert to working commit

parent b0240876
No related branches found
No related tags found
1 merge request!2App2
......@@ -173,7 +173,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
child: GestureDetector(
onTap: () {
setState(() {
//isMinimized = !isMinimized; // Toggle minimized state
isMinimized = !isMinimized; // Toggle minimized state
});
},
child: Icon(isMinimized ? Icons.arrow_drop_up : Icons.arrow_drop_down),
......
......@@ -10,6 +10,7 @@ import sqlite3
app = Flask(__name__)
terminate_server = 0
class IceHTTPServer(HTTPServer):
def __init__(self, server_address, handler_class, cursor):
super().__init__(server_address, handler_class)
......@@ -28,7 +29,7 @@ class IceHTTP(BaseHTTPRequestHandler):
def do_GET(self):
# Root path
if self.path == '/': # NB: temporary root path behavior
if self.path == '/': # NB: temporary root path behavior
self.send_response(200)
self.send_header("Content-type", "text/plain")
self.end_headers()
......@@ -36,7 +37,7 @@ class IceHTTP(BaseHTTPRequestHandler):
self.wfile.write(b"Root path hit!")
elif self.path == '/update_map': # NB: should be POST?
get_all_markers(self, self.cursor, False) # Get all markers
get_all_markers(self, self.cursor, False) # Get all markers
elif self.path == '/get_valid_markers': # NB: should be POST?
get_all_markers(self, self.cursor, True) # Get only valid markers
......@@ -45,6 +46,7 @@ class IceHTTP(BaseHTTPRequestHandler):
if self.path == '/get_weather_data':
get_weather(self)
# Terminate server on key press q
def on_key_press(server, event, cursor, conn):
if event.name == 'q':
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment