Skip to content

fix: serialize datetime starts for ASM logbook cursors - #734

Open
Max Gorbuk (mkzung) wants to merge 1 commit into
censys:mainfrom
mkzung:fix/asm-logbook-datetime
Open

Max Gorbuk (mkzung) wants to merge 1 commit into
censys:mainfrom
mkzung:fix/asm-logbook-datetime

Conversation

@mkzung

Copy link
Copy Markdown

Description

Passing a datetime to get_cursor raises a JSON serialization error.

Changes

Serialize datetimes as RFC3339 UTC. Treat naive values as UTC; preserve timestamp strings and event IDs.

Checklist

  • Updated docstrings and added request-serialization tests.
  • Ruff, mypy and 464 tests pass on Python 3.9 and 3.13, with 100% coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant