- {% for schedule in schedules_list.schedules %}
- church_id: {{ schedule.church_id }}
- rrule: {{ schedule.rrule }}
- duration_in_minutes: {{ schedule.duration_in_minutes }}
- include_periods: {{ schedule.include_periods }}
- exclude_periods: {{ schedule.exclude_periods }}
- {% with events=schedule|get_schedule_item_events %}
- {% for event in events %}
-
{% display_event event %}
- {% endfor %}
- {% endwith %}
-
- {% endfor %}
- possible_by_appointment: {{ schedules_list.possible_by_appointment }}
- is_related_to_mass: {{ schedules_list.is_related_to_mass }}
- is_related_to_adoration: {{ schedules_list.is_related_to_adoration }}
- is_related_to_permanence: {{ schedules_list.is_related_to_permanence }}
- will_be_seasonal_events: {{ schedules_list.will_be_seasonal_events }}
-
+
+
+
+ {% for schedule in schedules_list.schedules %}
+ church_id: {{ schedule.church_id }}
+ rrule: {{ schedule.rrule }}
+ duration_in_minutes: {{ schedule.duration_in_minutes }}
+ include_periods: {{ schedule.include_periods }}
+ exclude_periods: {{ schedule.exclude_periods }}
+ {% with events=schedule|get_schedule_item_events %}
+ {% for event in events %}
+
{% display_event event %}
+ {% endfor %}
+ {% endwith %}
+
+ {% endfor %}
+ possible_by_appointment: {{ schedules_list.possible_by_appointment }}
+ is_related_to_mass: {{ schedules_list.is_related_to_mass }}
+ is_related_to_adoration: {{ schedules_list.is_related_to_adoration }}
+ is_related_to_permanence: {{ schedules_list.is_related_to_permanence }}
+ will_be_seasonal_events: {{ schedules_list.will_be_seasonal_events }}
+
+
+
{{ schedules_list_json }}
+
+
\ No newline at end of file
diff --git a/home/templatetags/display_tags.py b/home/templatetags/display_tags.py
index f532727..8dd14cc 100644
--- a/home/templatetags/display_tags.py
+++ b/home/templatetags/display_tags.py
@@ -61,4 +61,7 @@ def display_similar_churches_location(church: Church, sorted_similar_churches: l
@register.simple_tag
def display_schedules_list(schedules_list: SchedulesList):
- return render_to_string('partials/schedules_display.html', {'schedules_list': schedules_list})
+ return render_to_string('partials/schedules_display.html', {
+ 'schedules_list': schedules_list,
+ 'schedules_list_json': schedules_list.model_dump_json(),
+ })
diff --git a/scraping/parse/parse_with_llm.py b/scraping/parse/parse_with_llm.py
index 32fac64..f9ac491 100644
--- a/scraping/parse/parse_with_llm.py
+++ b/scraping/parse/parse_with_llm.py
@@ -68,6 +68,7 @@ def get_prompt_template():
or "avant Pâques") or a precise time (e.g. "dans la matinée" or "dans la soirée"), do not return
a schedule item dictionary for this event. Usually, it means some of the booleans for mass,
adoration, permanence or seasonal events should be set to True.
+- If the church is not explicit in the text, the church_id must be null.
Here is the HTML extract to parse:
{truncated_html}
diff --git a/scraping/tests/fixtures/parse/llm_cache.cache b/scraping/tests/fixtures/parse/llm_cache.cache
index 0b57025..26556de 100644
Binary files a/scraping/tests/fixtures/parse/llm_cache.cache and b/scraping/tests/fixtures/parse/llm_cache.cache differ
diff --git a/scraping/tests/fixtures/parse/stnomdejesus.html b/scraping/tests/fixtures/parse/stnomdejesus.html
new file mode 100644
index 0000000..09eed24
--- /dev/null
+++ b/scraping/tests/fixtures/parse/stnomdejesus.html
@@ -0,0 +1,5 @@
+Rencontrer un prêtre - Se confesser