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> { ...@@ -173,7 +173,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
//isMinimized = !isMinimized; // Toggle minimized state isMinimized = !isMinimized; // Toggle minimized state
}); });
}, },
child: Icon(isMinimized ? Icons.arrow_drop_up : Icons.arrow_drop_down), child: Icon(isMinimized ? Icons.arrow_drop_up : Icons.arrow_drop_down),
......
...@@ -10,6 +10,7 @@ import sqlite3 ...@@ -10,6 +10,7 @@ import sqlite3
app = Flask(__name__) app = Flask(__name__)
terminate_server = 0 terminate_server = 0
class IceHTTPServer(HTTPServer): class IceHTTPServer(HTTPServer):
def __init__(self, server_address, handler_class, cursor): def __init__(self, server_address, handler_class, cursor):
super().__init__(server_address, handler_class) super().__init__(server_address, handler_class)
...@@ -45,6 +46,7 @@ class IceHTTP(BaseHTTPRequestHandler): ...@@ -45,6 +46,7 @@ class IceHTTP(BaseHTTPRequestHandler):
if self.path == '/get_weather_data': if self.path == '/get_weather_data':
get_weather(self) get_weather(self)
# Terminate server on key press q # Terminate server on key press q
def on_key_press(server, event, cursor, conn): def on_key_press(server, event, cursor, conn):
if event.name == 'q': if event.name == 'q':
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment