aboutsummaryrefslogtreecommitdiff
path: root/src/ics.mli
diff options
context:
space:
mode:
authorAlban Gruin2021-09-19 12:29:50 +0200
committerAlban Gruin2021-09-19 12:39:11 +0200
commit4b05babc1e5a4466028d7d210d9a7920a4a401f7 (patch)
treeeda874f6ab2c8b613d09546a62064e0172c88df8 /src/ics.mli
parentd489f3743cca9e6fb3dddbf10bbcb1e188b09f0b (diff)
server, ics, pages: allow to generate ICS from modules
This adds the ability to generate an ICS file from a module ID, and to filter it based on its groups. To do this, you can enter a module ID on the frontpage. Then, µCS will fetch the timetable, then return a page where one can select the group(s) they want to filter (this is enabled by the new Ics.get_all_groups function). Then, µCS is able to generate a link to that calendar, not unlike with a single group ID. Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'src/ics.mli')
-rw-r--r--src/ics.mli1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ics.mli b/src/ics.mli
index cdb00d8..f56a1a4 100644
--- a/src/ics.mli
+++ b/src/ics.mli
@@ -27,4 +27,5 @@ type t
val make : Event.t list -> t
val filter_groups : string list -> t -> t
+val get_all_groups : t -> string Seq.t
val to_string : string -> t -> string