We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5aa1f74 + 6d3ecf7 commit f14ed58Copy full SHA for f14ed58
users/arxiv/users/domain.py
@@ -330,7 +330,8 @@ def expires(self) -> Optional[int]:
330
"""
331
if self.end_time is None:
332
return None
333
- return max((self.end_time - datetime.now(tz=UTC)).seconds, 0)
+ duration = (self.end_time - datetime.now(tz=UTC)).total_seconds()
334
+ return max(duration, 0)
335
336
337
# Helpers and private functions.
users/setup.py
@@ -4,7 +4,7 @@
4
5
setup(
6
name='arxiv-auth',
7
- version='0.2.4',
+ version='0.2.5',
8
packages=[f'arxiv.{package}' for package
9
in find_packages('./arxiv', exclude=['*test*'])],
10
install_requires=[
0 commit comments