

Fix: z축 전달
@a973715d8a45010b7604a0dacda5f3dea1ca833b
--- pothole_server/database/database.py
+++ pothole_server/database/database.py
... | ... | @@ -150,13 +150,13 @@ |
150 | 150 |
return result |
151 | 151 |
|
152 | 152 |
|
153 |
- def db_add_pothole(self,pothole_id,pothole_location_x,pothole_location_y) : |
|
153 |
+ def db_add_pothole(self,pothole_id,pothole_location_x,pothole_location_y,z) : |
|
154 | 154 |
cur = self.conn.cursor() # 커서를 생성한다 |
155 | 155 |
now=datetime.now() |
156 | 156 |
d=now.strftime('%Y-%m-%d %X') |
157 | 157 |
cur.execute(f''' |
158 |
- insert into "TRAFFICAGENCY".pothole (pothole_id,pothole_location_x,pothole_location_y,timestamp) |
|
159 |
- values ('{pothole_id}','{pothole_location_x}','{pothole_location_y}','{d}') |
|
158 |
+ insert into "TRAFFICAGENCY".pothole (pothole_id,pothole_location_x,pothole_location_y,timestamp,z) |
|
159 |
+ values ('{pothole_id}','{pothole_location_x}','{pothole_location_y}','{d}','{z}') |
|
160 | 160 |
''') |
161 | 161 |
|
162 | 162 |
def db_delete_pothole(self,dest_x,dest_y) : |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?