diff options
author | Alban Gruin | 2022-02-05 15:16:18 +0100 |
---|---|---|
committer | Alban Gruin | 2022-02-05 15:18:19 +0100 |
commit | a55229d34abeb85d9adaca615c9905c7b06a81e1 (patch) | |
tree | 9735a5e37101dd699bebc6777d403f50d804f935 /src/ics.ml | |
parent | ee3b01bf7027798ba23153aef7f4ccc57f5f7b38 (diff) |
Introduce a new feature to list events without location
This adds a new page listing events without location.
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'src/ics.ml')
-rw-r--r-- | src/ics.ml | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -68,6 +68,9 @@ module Event = struct |> List.map ics_split_line |> String.concat "\r\n" + let format_fields fn event = + fn event.summary event.groups event.start event.stop + let has_groups groups event = List.fold_left (fun found group -> found || List.exists ((=) group) groups) false event.groups |