From 9a315f36a20d9ad9c68297e6a835d78f69ab8be0 Mon Sep 17 00:00:00 2001 From: silva guimaraes Date: Wed, 9 Jul 2025 19:48:26 -0300 Subject: [PATCH] add copa nordeste --- bin/main.ml | 7 +++++++ lib/dune | 1 - lib/lib.ml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/main.ml b/bin/main.ml index 4870bf1..7261d14 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -31,6 +31,13 @@ let tournaments : Lib.tournament_scrape_context list = filter_foreigners = false; timezone_offset = None; }; + { + id = 1596; + season = 69430; + name = "COPA NORDESTE"; + filter_foreigners = false; + timezone_offset = None; + }; { id = 1024; season = 70664; diff --git a/lib/dune b/lib/dune index 1098762..8527db5 100644 --- a/lib/dune +++ b/lib/dune @@ -1,6 +1,5 @@ (library (name api) (public_name api) - ; (modules api rentry) (libraries cohttp cohttp-lwt-unix cohttp-curl-lwt yojson ppx_deriving_yojson.runtime) (preprocess (pps ppx_yojson_conv ppx_deriving.show ppx_expect))) diff --git a/lib/lib.ml b/lib/lib.ml index ca81b82..804b115 100644 --- a/lib/lib.ml +++ b/lib/lib.ml @@ -102,6 +102,8 @@ module Tournament = struct let make context matches = { context; matches } + let matches { matches; _} = matches + let pp (day : Unix.tm) (tournament : t) = let format_timestamp x = let is_today start =