Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: postgres store and update func in hash worker #228

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

aatmanvaidya
Copy link
Collaborator

No description provided.

@aatmanvaidya aatmanvaidya requested a review from duggalsu March 21, 2024 03:16
src/core/store/postgresql.py Fixed Show fixed Hide fixed
print("Value stored successfully!")
elif table_name == "user_message_inbox_perceptually_similar":
self.cur.execute(
f"""INSERT INTO {table_name} ({value_column}, {worker_column}) VALUES (%s, %s)""",

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
src/core/store/postgresql.py Fixed Show fixed Hide fixed
src/core/store/postgresql.py Fixed Show fixed Hide fixed
print("Value stored successfully!")
elif table_name == "user_message_inbox_perceptually_similar":
self.cur.execute(
f"""INSERT INTO {table_name} ({value_column}, {worker_column}) VALUES (%s, %s)""",

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
pass
elif table_name == "user_message_inbox_perceptually_similar":
self.cur.execute(
f"""UPDATE {table_name} SET {value_column} = %s, {worker_column} = %s WHERE id = %s""",

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
@duggalsu duggalsu merged commit 27f6715 into tattle-made:development Mar 21, 2024
5 checks passed
@aatmanvaidya aatmanvaidya deleted the hash-worker-update branch March 22, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants