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

update: fix map switch

parent d690e591
No related branches found
No related tags found
No related merge requests found
Showing
with 6689 additions and 3 deletions
import 'dart:async'; import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:app/server_requests/init_state.dart';
import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart'; import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart';
import '../consts.dart'; import '../consts.dart';
import '../widgets/main_layout.dart'; import '../widgets/main_layout.dart';
import '../server_requests/init_state.dart';
import '../utils/custom_search_delegate.dart'; import '../utils/custom_search_delegate.dart';
class DefaultPage extends StatefulWidget { class DefaultPage extends StatefulWidget {
...@@ -63,8 +63,8 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -63,8 +63,8 @@ class _DefaultPageState extends State<DefaultPage> {
// Make request only if the selected lake is different from the current selected lake // Make request only if the selected lake is different from the current selected lake
if (result != selectedLake) { if (result != selectedLake) {
setState(() { setState(() {
selectedLake = result;
initialiseState(false); initialiseState(false);
selectedLake = result;
}); });
} }
}), }),
......
No preview for this file type
...@@ -244,7 +244,6 @@ def jsonify_data_sub_div_ids(lake_name, sub_div_and_data, location=se.plot_folde ...@@ -244,7 +244,6 @@ def jsonify_data_sub_div_ids(lake_name, sub_div_and_data, location=se.plot_folde
try: try:
with open(file_path, 'w', encoding='utf-8') as json_file: with open(file_path, 'w', encoding='utf-8') as json_file:
json.dump(aggregated_data, json_file, indent=4) json.dump(aggregated_data, json_file, indent=4)
print(f"All data successfully saved to {file_path}")
except Exception as e: except Exception as e:
print(f"Failed to save data to JSON file. Error: {e}") print(f"Failed to save data to JSON file. Error: {e}")
......
This diff is collapsed.
...@@ -24,3 +24,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_ ...@@ -24,3 +24,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_
2024-05-04,2024-05-05,115.0,157.0,133.92,5.15,65536,0,Ice 2024-05-04,2024-05-05,115.0,157.0,133.92,5.15,65536,0,Ice
2024-05-14,2024-05-15,145.0,214.0,183.21,10.97,65536,0,No ice 2024-05-14,2024-05-15,145.0,214.0,183.21,10.97,65536,0,No ice
2024-05-16,2024-05-17,126.0,174.0,148.16,6.77,65536,0,No ice 2024-05-16,2024-05-17,126.0,174.0,148.16,6.77,65536,0,No ice
2024-05-21,2024-05-22,116.0,197.0,172.28,9.21,65536,0,No ice
...@@ -25,3 +25,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_ ...@@ -25,3 +25,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_
2024-05-04,2024-05-05,115.0,142.0,128.32,3.22,65536,0,Ice 2024-05-04,2024-05-05,115.0,142.0,128.32,3.22,65536,0,Ice
2024-05-14,2024-05-15,136.0,199.0,169.73,10.25,65536,0,No ice 2024-05-14,2024-05-15,136.0,199.0,169.73,10.25,65536,0,No ice
2024-05-16,2024-05-17,130.0,170.0,151.3,5.28,65536,0,Ice 2024-05-16,2024-05-17,130.0,170.0,151.3,5.28,65536,0,Ice
2024-05-21,2024-05-22,143.0,196.0,173.33,6.91,65536,0,No ice
...@@ -25,3 +25,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_ ...@@ -25,3 +25,4 @@ interval_from,interval_to,default_B0_min,default_B0_max,default_B0_mean,default_
2024-05-04,2024-05-05,116.0,148.0,131.24,3.88,65536,0,Ice 2024-05-04,2024-05-05,116.0,148.0,131.24,3.88,65536,0,Ice
2024-05-14,2024-05-15,141.0,208.0,174.17,7.8,65536,0,No ice 2024-05-14,2024-05-15,141.0,208.0,174.17,7.8,65536,0,No ice
2024-05-16,2024-05-17,121.0,178.0,151.29,7.98,65536,0,No ice 2024-05-16,2024-05-17,121.0,178.0,151.29,7.98,65536,0,No ice
2024-05-21,2024-05-22,89.0,204.0,173.47,11.43,65536,0,No ice
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -33,6 +33,8 @@ def update_all_measurements(update_bbox: bool): ...@@ -33,6 +33,8 @@ def update_all_measurements(update_bbox: bool):
update_measurements(lake) update_measurements(lake)
print("\t", lake, " updated") print("\t", lake, " updated")
print("Updating completed!")
except Exception as e: except Exception as e:
print(f"Failed in update_all_measurements(...): {e}") print(f"Failed in update_all_measurements(...): {e}")
......
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