aboutsummaryrefslogtreecommitdiff
path: root/backend/hist_data/cal.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-04 15:58:18 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-04 15:58:18 +1100
commit472fa9c1f11a3c16e10541ce8b9de44a6dadeeec (patch)
treed41f9b44fc40f61747e1b02463ef8c405ef5c93c /backend/hist_data/cal.py
parenta6a3616042414eb3c18611eaca58cbcc62c86eaa (diff)
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
Diffstat (limited to 'backend/hist_data/cal.py')
-rw-r--r--backend/hist_data/cal.py2
1 files changed, 1 insertions, 1 deletions
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):