Add initial category filtering support#1036
Open
kkrishnan10 wants to merge 3 commits intoniccokunzmann:masterfrom
Open
Add initial category filtering support#1036kkrishnan10 wants to merge 3 commits intoniccokunzmann:masterfrom
kkrishnan10 wants to merge 3 commits intoniccokunzmann:masterfrom
Conversation
Owner
niccokunzmann
left a comment
There was a problem hiding this comment.
Yes, this looks like a good start. Let me know if you need any help.
| end = start + datetime.timedelta(days=1) | ||
| location = Location(calendar_event, self.location_spec) | ||
| name = calendar_event.get("SUMMARY", "") | ||
| raw_categories = calendar_event.get("CATEGORIES", "") |
Owner
There was a problem hiding this comment.
Have a look.. You should be able to use
calendar_event.categories that does exactly that.
https://icalendar.readthedocs.io/en/stable/api.html#icalendar.cal.Calendar.categories
Author
There was a problem hiding this comment.
Thanks for the suggestion! I have updated the code to use calendar_event.categories and pushed the change.
| {% if specification['menu_shows_description'] %}<div class="menu-text menu-calendar-description">{{ specification["description"] }}</div>{% endif %} | ||
| </div> | ||
| </div> | ||
| <div id="category-filters" style="margin-bottom: 15px;"> |
Owner
There was a problem hiding this comment.
Could you please add all the styles to the .css file?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial work for category filtering feature.
This PR adds the first steps for category based event filtering.
I updated the backend to read the CATEGORIES field from ICS events and included it in the
JSON output. The feature is not complete yet, but this sets up the structure for the full
filtering system. I will continue adding the UI and filtering logic next.