Skip to content

Commit

Permalink
Don't require search_text when searching for events
Browse files Browse the repository at this point in the history
This allows to e.g. list all events scheduled for today with:

```
$ gcalcli ... search '' "today 00:00" "tomorrow 00:00"
```
  • Loading branch information
booxter committed Nov 1, 2024
1 parent 521bf2a commit 99d4c77
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gcalcli/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,10 +1257,6 @@ def _display_queried_events(self, start, end, search=None,
return self._iterate_events(start, event_list, year_date=year_date)

def TextQuery(self, search_text='', start=None, end=None):
if not search_text:
# the empty string would get *ALL* events...
raise GcalcliError('Search text is required.')

return self._display_queried_events(start, end, search_text, True)

def UpdatesQuery(self, last_updated_datetime, start=None, end=None):
Expand Down

0 comments on commit 99d4c77

Please sign in to comment.