Add --starts-before filter for match events #29

Open
opened 2026-03-26 19:11:34 +01:00 by shoko · 0 comments
Owner

Feature Request

Add a filter to only show match events that start before a given timestamp.

Details

  • New flag: --starts-before <unix_timestamp>
  • Format: Unix epoch (e.g., 1743076800)
  • Scope: Only applies with --matches-only flag
  • LIVE events: Always included regardless of timestamp

Behavior

When --starts-before is set:

  • Include all LIVE events (already started)
  • Include events with startTime <= target timestamp
  • Exclude events with startTime > target timestamp

When --starts-before is not set:

  • Show all events (current behavior)

Example

# Show only events starting within next 6 hours (from client calculating timestamp)
browse.py --category "Counter Strike" --matches-only --starts-before 1743091200

Implementation Notes

  • Use Unix epoch integer for efficient comparison
  • Only applies to --matches-only (not --non-matches-only to avoid confusion)
  • Client/interface calculates the timestamp before calling browse.py
## Feature Request Add a filter to only show match events that start before a given timestamp. ## Details - **New flag:** `--starts-before <unix_timestamp>` - **Format:** Unix epoch (e.g., `1743076800`) - **Scope:** Only applies with `--matches-only` flag - **LIVE events:** Always included regardless of timestamp ## Behavior When `--starts-before` is set: - Include all LIVE events (already started) - Include events with startTime <= target timestamp - Exclude events with startTime > target timestamp When `--starts-before` is not set: - Show all events (current behavior) ## Example ```bash # Show only events starting within next 6 hours (from client calculating timestamp) browse.py --category "Counter Strike" --matches-only --starts-before 1743091200 ``` ## Implementation Notes - Use Unix epoch integer for efficient comparison - Only applies to `--matches-only` (not `--non-matches-only` to avoid confusion) - Client/interface calculates the timestamp before calling browse.py
shoko added the enhancement label 2026-03-26 19:11:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/jujutsu-skills#29