fix: use timestamp placeholder for postgres compat (#51)
* fix: use timestamp placeholder for postgres compat --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
parent
5b1fc0ffbe
commit
73e3bab6b3
2 changed files with 11 additions and 4 deletions
5
crud.py
5
crud.py
|
|
@ -17,7 +17,7 @@ async def create_withdraw_link(
|
|||
link_id = urlsafe_short_hash()[:22]
|
||||
available_links = ",".join([str(i) for i in range(data.uses)])
|
||||
await db.execute(
|
||||
"""
|
||||
f"""
|
||||
INSERT INTO withdraw.withdraw_link (
|
||||
id,
|
||||
wallet,
|
||||
|
|
@ -37,7 +37,8 @@ async def create_withdraw_link(
|
|||
custom_url,
|
||||
created_at
|
||||
)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
VALUES
|
||||
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, {db.timestamp_placeholder})
|
||||
""",
|
||||
(
|
||||
link_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue