윤영준 윤영준 2023-11-13
commented out unused db param
@b1638017a0d334ed74074dff98282af67549afa8
action.py
--- action.py
+++ action.py
@@ -85,7 +85,7 @@
         user_id = 'test'
         action_success = True
         action_id = 'test'
-        db.db_add_action(action_id, lat, lon, user_id, action_success)
+        # db.db_add_action(action_id, lat, lon, user_id, action_success)
         return {
             'node': (lat, lon),
             'rain': rain,
database/database.py
--- database/database.py
+++ database/database.py
@@ -67,8 +67,7 @@
         cur = self.conn.cursor() # 커서를 생성한다
         now=datetime.now() 
         d=now.strftime('%Y-%m-%d %X')
-        cur.execute(f'''
-        insert into rds.action (action_id,lat,lon,action_time_stamp,user_id,action_success)
+        cur.execute(f'''insert into rds.action (action_id,lat,lon,action_time_stamp,user_id,action_success)
         values ('{action_id}','{lat}','{lon}','{d}','{user_id}','{action_success}')
         ''')
         
Add a comment
List