Skip to content

Commit 731cf84

Browse files
committed
chore: remove unused helper and fix formatting
1 parent 0d8129c commit 731cf84

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

altcha/altcha.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,3 @@ def solve_challenge(
737737
return Solution(n, took)
738738

739739
return None
740-
741-
def _normalize_expires(expires: datetime.datetime | None) -> datetime.datetime | None:
742-
if expires is None:
743-
return None
744-
745-
# Case 1: naive datetime → assume UTC (backward compatibility)
746-
if expires.tzinfo is None:
747-
return expires.replace(tzinfo=timezone.utc)
748-
749-
# Case 2: aware datetime (any timezone) → convert to UTC
750-
return expires.astimezone(timezone.utc)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="altcha",
5-
version="0.2.0",
5+
version="1.0.0",
66
description="A library for creating and verifying challenges for ALTCHA.",
77
long_description=open("README.md").read(),
88
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)