From b51335e7dd6d66070d7ae243f1e91349120b3a5c Mon Sep 17 00:00:00 2001
From: Sara <sarasdj@stud.ntnu.no>
Date: Wed, 14 Feb 2024 17:20:32 +0100
Subject: [PATCH] update: commenting

---
 server/map/get_markers.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/map/get_markers.py b/server/map/get_markers.py
index 201d67c5..eb8c2bcd 100644
--- a/server/map/get_markers.py
+++ b/server/map/get_markers.py
@@ -1,12 +1,12 @@
 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,
-- 
GitLab