From 19eb7d49668616f0b58ea3899f719db3245588c9 Mon Sep 17 00:00:00 2001 From: rlreamy <34109594+rlreamy@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:05:50 -0400 Subject: [PATCH] Update app.py --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 72bd2ce..3597f1d 100644 --- a/app.py +++ b/app.py @@ -48,6 +48,8 @@ def __init__(self): def get_db_cursor(self): try: + if (self.database.is_connected() == False): + self.get_db_connection(); self.cursor = self.database.cursor(buffered=False, dictionary=True) return self.cursor except Exception as error: