mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-07-03 13:16:26 +00:00
Compare commits
2 Commits
8c48d76c65
...
v0.2.1
Author | SHA1 | Date | |
---|---|---|---|
0764308638
|
|||
e5c1e0ef4a
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "arcaea-offline"
|
name = "arcaea-offline"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
||||||
description = "Manage your local Arcaea score database."
|
description = "Manage your local Arcaea score database."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
2
src/arcaea_offline/external/arcaea/common.py
vendored
2
src/arcaea_offline/external/arcaea/common.py
vendored
@ -27,7 +27,7 @@ def fix_timestamp(timestamp: int) -> Union[int, None]:
|
|||||||
# but that's way too later than 9999-12-31 23:59:59, 253402271999,
|
# but that's way too later than 9999-12-31 23:59:59, 253402271999,
|
||||||
# I don't think Arcaea would still be an active updated game by then.
|
# I don't think Arcaea would still be an active updated game by then.
|
||||||
# so don't mind those small issues, just use this.
|
# so don't mind those small issues, just use this.
|
||||||
digits = int(math.log10(timestamp)) + 1
|
digits = int(math.log10(abs(timestamp))) + 1 if timestamp != 0 else 1
|
||||||
if digits < 5:
|
if digits < 5:
|
||||||
return None
|
return None
|
||||||
timestamp_str = str(timestamp)
|
timestamp_str = str(timestamp)
|
||||||
|
Reference in New Issue
Block a user