Skip to content

Commit

Permalink
quick bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Amy Parker <[email protected]>
  • Loading branch information
amyipdev authored Aug 30, 2023
1 parent e1b97a2 commit 89c651e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srv/dbhandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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()
Expand Down

0 comments on commit 89c651e

Please sign in to comment.