diff --git a/RSSEntry.py b/RSSEntry.py index d5ef325..426f584 100644 --- a/RSSEntry.py +++ b/RSSEntry.py @@ -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] diff --git a/database.py b/database.py index 511b739..298bf59 100644 --- a/database.py +++ b/database.py @@ -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