Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
56b6a2f2
Commit
56b6a2f2
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: revert to working commit
parent
b0240876
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
App2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/lib/pages/widgets/map_widget.dart
+1
-1
1 addition, 1 deletion
app/lib/pages/widgets/map_widget.dart
server/main.py
+4
-2
4 additions, 2 deletions
server/main.py
server/map/__pycache__/get_sat_query.cpython-311.pyc
+0
-0
0 additions, 0 deletions
server/map/__pycache__/get_sat_query.cpython-311.pyc
with
5 additions
and
3 deletions
app/lib/pages/widgets/map_widget.dart
+
1
−
1
View file @
56b6a2f2
...
...
@@ -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
),
...
...
This diff is collapsed.
Click to expand it.
server/main.py
+
4
−
2
View file @
56b6a2f2
...
...
@@ -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
'
:
...
...
This diff is collapsed.
Click to expand it.
server/map/__pycache__/get_sat_query.cpython-311.pyc
0 → 100644
+
0
−
0
View file @
56b6a2f2
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment