mirror of
https://github.com/devproje/balance-application.git
synced 2024-10-20 15:11:21 +00:00
fix: balance service delete() method error fixed
This commit is contained in:
parent
6ae4b78a98
commit
38113cc6a8
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ class BalanceService:
|
||||||
ok = True
|
ok = True
|
||||||
cur = self._conn.cursor()
|
cur = self._conn.cursor()
|
||||||
try:
|
try:
|
||||||
cur.execute("delete from balset where id = %s;", (id))
|
cur.execute("delete from balset where id = %s;", (str(id)))
|
||||||
self._conn.commit()
|
self._conn.commit()
|
||||||
except:
|
except:
|
||||||
self._conn.rollback()
|
self._conn.rollback()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv(verbose=True, override=True)
|
||||||
|
|
||||||
def _load_secret():
|
def _load_secret():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue