Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnight95 committed Oct 21, 2023
1 parent 670d352 commit aaea2fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions page_analyzer/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def get_url_by_name(url: str, connection):

def insert_url(url: str, connection):
query = "INSERT INTO urls (name) VALUES (%s) RETURNING id"
data = (url,)
result = execute(connection, query, data, fetch='one')
result = execute(connection, query, (url,), fetch='one')
return result.get('id')


Expand Down

0 comments on commit aaea2fe

Please sign in to comment.