minor bug fix

This commit is contained in:
2021-01-07 20:56:05 +08:00
parent 27413613bd
commit a5d70d5c37
2 changed files with 4 additions and 2 deletions

View File

@@ -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]

View File

@@ -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