From e470e2e43fc855997a6e17125cca76a1b49f0e9d Mon Sep 17 00:00:00 2001 From: krateng Date: Mon, 25 Apr 2022 02:42:07 +0200 Subject: [PATCH] Potentially fixed nonsensical caching, GH-132 --- maloja/malojatime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maloja/malojatime.py b/maloja/malojatime.py index 73b1731..28ac383 100644 --- a/maloja/malojatime.py +++ b/maloja/malojatime.py @@ -320,7 +320,8 @@ class MTRangeComposite(MTRangeGeneric): if self.since is None: return FIRST_SCROBBLE else: return self.since.first_stamp() 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() def next(self,step=1):