'Mark all viewed' button was missing in this version, added test also. (#652)

This commit is contained in:
dgtlmoon
2022-06-02 10:01:03 +02:00
committed by GitHub
parent 8294519f43
commit 7929aeddfc
4 changed files with 31 additions and 21 deletions

View File

@@ -66,7 +66,7 @@ class model(dict):
@property
def viewed(self):
if int(self.newest_history_key) <= int(self['last_viewed']):
if int(self['last_viewed']) >= int(self.newest_history_key) :
return True
return False