From 472fa9c1f11a3c16e10541ce8b9de44a6dadeeec Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 4 Jan 2023 15:58:18 +1100 Subject: Add 'unit' column to event_disp table Use 'unit' to narrow search of 'event_disp' values Simplify SQL queries to use 'unit' instead of 'start' and 'fmt' Fix minor HistDate documentation error --- backend/hist_data/cal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/hist_data/cal.py') diff --git a/backend/hist_data/cal.py b/backend/hist_data/cal.py index 29959ef..efb5bab 100644 --- a/backend/hist_data/cal.py +++ b/backend/hist_data/cal.py @@ -77,7 +77,7 @@ class HistDate: - 'month' and 'day' are at least 1, if given - 'gcal' may be: - True: Indicates a Gregorian calendar date - - False: Means the date should, for display, be converted to a Julian calendar date + - False: Indicates a Julian calendar date - None: 'month' and 'day' are 1 (required for dates before MIN_CAL_YEAR) """ def __init__(self, gcal: bool | None, year: int, month=1, day=1): -- cgit v1.2.3