Skip to content

Commit

Permalink
Merge pull request #19 from YashIndane/fix_dbport
Browse files Browse the repository at this point in the history
fixed dbport issue
  • Loading branch information
YashIndane authored Feb 25, 2024
2 parents ddf2a02 + 5bc3e20 commit 425c668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appaws.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def parseargs() -> None:
#Setting up db instance
db = dbconnector.DB_INSTANCE(
host=DB_HOST,
port=DB_PORT,
port=int(DB_PORT),
user=DB_USER,
password=DB_PASS
)
Expand Down
4 changes: 2 additions & 2 deletions dbconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
logging.basicConfig(level=logging.NOTSET)

class DB_INSTANCE:
def __init__(self, host:str, port:str, user:str, password:str) -> None:
def __init__(self, host:str, port:int, user:str, password:str) -> None:
self.host = host
self.port = port
self.user = user
Expand Down Expand Up @@ -103,4 +103,4 @@ def insertData(self, data:str) -> None:
self.DB.commit()

except Exception as e:
logging.error(e)
logging.error(e)

0 comments on commit 425c668

Please sign in to comment.