Skip to content
Snippets Groups Projects
Commit 25e35774 authored by Hoa Ben The Nguyen's avatar Hoa Ben The Nguyen
Browse files

change: test data

parent 80ea0ec5
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -2,6 +2,8 @@ from flask import Flask
from http.server import HTTPServer, BaseHTTPRequestHandler
from consts import SSL_CERT_PATH, SSL_KEY_PATH, HOST, PORT
from map.get_markers import get_all_markers
from map.input_new_data import input_new_Lidar_data
#from map.get_relation import get_relation
from APIs.get_weather import get_weather
import ssl
import keyboard
......
No preview for this file type
File added
No preview for this file type
......@@ -8,7 +8,7 @@ def input_new_Lidar_data(self, cursor, sensorId, bodyOfWater):
cursor.execute('''
INSERT INTO Measurement( SensorID, TimeMeasured, WaterBodyName, WholeAverageThickness) VALUES
(?,?,?,?);
''', ( sensorId, datetime.utcnow().replace(microsecond=0), bodyOfWater,0))
''', ( sensorId, datetime.utcnow().replace(microsecond=0), bodyOfWater, 0))
# auto generate new measurement id
measurement_id = cursor.lastrowid
......
No preview for this file type
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