fix: balance service delete() method error fixed

This commit is contained in:
Project_IO 2024-09-17 14:35:02 +09:00
parent 6ae4b78a98
commit 38113cc6a8
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ class BalanceService:
ok = True
cur = self._conn.cursor()
try:
cur.execute("delete from balset where id = %s;", (id))
cur.execute("delete from balset where id = %s;", (str(id)))
self._conn.commit()
except:
self._conn.rollback()

View file

@ -1,7 +1,7 @@
import os
from dotenv import load_dotenv
load_dotenv()
load_dotenv(verbose=True, override=True)
def _load_secret():
try: