mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Potentially fixed nonsensical caching, GH-132
This commit is contained in:
parent
35f428ef69
commit
e470e2e43f
@ -320,7 +320,8 @@ class MTRangeComposite(MTRangeGeneric):
|
|||||||
if self.since is None: return FIRST_SCROBBLE
|
if self.since is None: return FIRST_SCROBBLE
|
||||||
else: return self.since.first_stamp()
|
else: return self.since.first_stamp()
|
||||||
def last_stamp(self):
|
def last_stamp(self):
|
||||||
if self.to is None: return int(datetime.utcnow().replace(tzinfo=timezone.utc).timestamp())
|
#if self.to is None: return int(datetime.utcnow().replace(tzinfo=timezone.utc).timestamp())
|
||||||
|
if self.to is None: return today().last_stamp()
|
||||||
else: return self.to.last_stamp()
|
else: return self.to.last_stamp()
|
||||||
|
|
||||||
def next(self,step=1):
|
def next(self,step=1):
|
||||||
|
Loading…
Reference in New Issue
Block a user