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

update: commenting

parent f6d2cf25
No related branches found
No related tags found
No related merge requests found
import json
# get_markers requests all marker data from mongoDB
def get_all_markers(self, cursor, valid : bool):
# get_markers requests all marker data or valid markers, converts the data to json, and writes
# the data to the response object
def get_all_markers(self, cursor, valid: bool):
try:
# NB: interval temporarily hard coded to 5 days
if valid == True: # Fetch only valid markers (taken within last 5 days)
if valid: # Fetch only valid markers (taken within last 5 days)
cursor.execute('''
SELECT m.MeasurementID, m.SensorID, m.TimeMeasured, d.Latitude, d.Longitude,
d.IceTop, d.IceBottom, d.CalculatedThickness, d.Accuracy, s.SensorType, s.Active,
......
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