Skip to content

Commit 529504b

Browse files
committed
bugfix: correct requests count over the day
refers to #15.
1 parent e70bd1d commit 529504b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futuramaapi/repositories/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ async def do_expire(cls, session: AsyncSession, key: str, /) -> None:
423423

424424

425425
def _cache_requests_since_builder(func_, *args, **_) -> str:
426-
truncated = args[1].replace(hour=0, minute=0, second=0, microsecond=0)
426+
truncated = args[1].replace(minute=0, second=0, microsecond=0)
427427
return f"{func_.__name__}:{truncated.isoformat()}"
428428

429429

0 commit comments

Comments
 (0)