diff --git a/srv/dbhandle.py b/srv/dbhandle.py index 18dd859..c9d0c6d 100644 --- a/srv/dbhandle.py +++ b/srv/dbhandle.py @@ -168,6 +168,7 @@ def _hdr(self, srv: str, st: int, conn) -> int: except: conn.commit() mx = st + mxr = mx if not rc_exists: sql = f"insert into {self.p}day_logs \ (logDate, serverName, serverStatus) values \ @@ -194,7 +195,7 @@ def _hdr(self, srv: str, st: int, conn) -> int: conn.commit() curr.close() conn.close() - return mx + return mxr def _iil(self, srv: str, status: int, conn) -> None: curr = conn.cursor()