Skip to content

Fix float timestamps breaking search filters#152

Merged
beaufour merged 1 commit into
masterfrom
fix-float-timestamps
Jan 24, 2026
Merged

Fix float timestamps breaking search filters#152
beaufour merged 1 commit into
masterfrom
fix-float-timestamps

Conversation

@beaufour

Copy link
Copy Markdown
Collaborator

Summary

  • Fixed issue where float timestamps (e.g., 1527638245.75) caused Flickr API to return all photos instead of filtering
  • Added conversion of float timestamps to integers in clean_args() for date parameters:
    • min_upload_date, max_upload_date
    • min_taken_date, max_taken_date
    • min_date, max_date
  • Added comprehensive test coverage for timestamp handling

Fixes #94

Test plan

  • Unit tests pass (uv run pytest test/test_method_call.py -v)
  • Full test suite passes (uv run pytest)
  • Integration tests pass (uv run python integration_tests/integration_test.py --config)

🤖 Generated with Claude Code

When date parameters contain decimal values (e.g., 1527638245.75),
the Flickr API returns all photos instead of filtering correctly.
Added conversion of float timestamps to integers in clean_args()
for min_upload_date, max_upload_date, min_taken_date, max_taken_date,
min_date, and max_date parameters.

Fixes #94

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@beaufour beaufour merged commit e287778 into master Jan 24, 2026
@beaufour beaufour deleted the fix-float-timestamps branch January 24, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search with epoch containing hundredth of seconds will return all

1 participant