minor bug fix
This commit is contained in:
@@ -119,7 +119,7 @@ class RSSEntry:
|
||||
self.interval = data[2]
|
||||
self.lastupdatetime = None
|
||||
if data is not None and data[3] is not None:
|
||||
self.interval = data[3]
|
||||
self.lastupdatetime = data[3]
|
||||
self.id = None
|
||||
if data is not None and data[4] is not None:
|
||||
self.id = data[4]
|
||||
|
||||
@@ -195,7 +195,8 @@ PRIMARY KEY (hash)
|
||||
for i in cur:
|
||||
return userStatus(i[1]), i[2]
|
||||
except:
|
||||
return userStatus.normalStatus, ''
|
||||
pass
|
||||
return userStatus.normalStatus, ''
|
||||
|
||||
def setUserStatus(self, userId: int, status: userStatus = userStatus.normalStatus, hashd: str = '') -> bool:
|
||||
with self._value_lock:
|
||||
@@ -252,5 +253,6 @@ PRIMARY KEY (hash)
|
||||
for v in hashEntries.getList():
|
||||
self._db.execute(
|
||||
f"INSERT INTO hashList VALUES ('{v.id}', '{v.hash}', {v.time})")
|
||||
self._db.commit()
|
||||
except:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user