moonyeju 2023-11-20
Fix: z축 전달
@a973715d8a45010b7604a0dacda5f3dea1ca833b
pothole_server/database/database.py
--- pothole_server/database/database.py
+++ pothole_server/database/database.py
@@ -150,13 +150,13 @@
         return result
     
     
-    def db_add_pothole(self,pothole_id,pothole_location_x,pothole_location_y) :
+    def db_add_pothole(self,pothole_id,pothole_location_x,pothole_location_y,z) :
         cur = self.conn.cursor() # 커서를 생성한다
         now=datetime.now() 
         d=now.strftime('%Y-%m-%d %X')
         cur.execute(f'''
-        insert into "TRAFFICAGENCY".pothole (pothole_id,pothole_location_x,pothole_location_y,timestamp)
-        values ('{pothole_id}','{pothole_location_x}','{pothole_location_y}','{d}')
+        insert into "TRAFFICAGENCY".pothole (pothole_id,pothole_location_x,pothole_location_y,timestamp,z)
+        values ('{pothole_id}','{pothole_location_x}','{pothole_location_y}','{d}','{z}')
         ''')
         
     def db_delete_pothole(self,dest_x,dest_y) :
Add a comment
List