--- action.py
+++ action.py
... | ... | @@ -85,7 +85,7 @@ |
85 | 85 |
user_id = 'test' |
86 | 86 |
action_success = True |
87 | 87 |
action_id = 'test' |
88 |
- db.db_add_action(action_id, lat, lon, user_id, action_success) |
|
88 |
+ # db.db_add_action(action_id, lat, lon, user_id, action_success) |
|
89 | 89 |
return { |
90 | 90 |
'node': (lat, lon), |
91 | 91 |
'rain': rain, |
--- database/database.py
+++ database/database.py
... | ... | @@ -67,8 +67,7 @@ |
67 | 67 |
cur = self.conn.cursor() # 커서를 생성한다 |
68 | 68 |
now=datetime.now() |
69 | 69 |
d=now.strftime('%Y-%m-%d %X') |
70 |
- cur.execute(f''' |
|
71 |
- insert into rds.action (action_id,lat,lon,action_time_stamp,user_id,action_success) |
|
70 |
+ cur.execute(f'''insert into rds.action (action_id,lat,lon,action_time_stamp,user_id,action_success) |
|
72 | 71 |
values ('{action_id}','{lat}','{lon}','{d}','{user_id}','{action_success}') |
73 | 72 |
''') |
74 | 73 |
|
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?