diff --git a/app/DataBase/msg.py b/app/DataBase/msg.py index 76255f2..32a6a69 100644 --- a/app/DataBase/msg.py +++ b/app/DataBase/msg.py @@ -177,6 +177,9 @@ class Msg: where StrTalker = ? and strftime('%Y',CreateTime,'unixepoch','localtime') = ? group by days ''' + result = None + if not self.open_flag: + return None try: lock.acquire(True) self.cursor.execute(sql, [username_, year_])