Added missing value in query string
This commit is contained in:
parent
fe2c514a0c
commit
0dde0d04cd
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ def handle_frontend_signals(project_id: int, user_id: str, data: schemas_ee.Sign
|
|||
res = {'errors': 'query not executed'}
|
||||
insights_query = """INSERT INTO public.frontend_signals VALUES (%(project_id)s, %(user_id)s, %(timestamp)s, %(action)s, %(source)s, %(category)s, %(data)s)"""
|
||||
with pg_client.PostgresClient() as conn:
|
||||
query = conn.mogrify(insights_query, {'project_id': project_id, 'user_id': user_id, 'timestamp': data.timestamp, 'source': data.source,
|
||||
query = conn.mogrify(insights_query, {'project_id': project_id, 'user_id': user_id, 'timestamp': data.timestamp, 'action': data.action, 'source': data.source,
|
||||
'category': data.category, 'data': json.dumps(data.data)})
|
||||
conn.execute(query)
|
||||
res = helper.dict_to_camel_case(conn.fetchone())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue