From b6500955880c983235a98a2b96a75fe710fba0ab Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 14 Jul 2023 11:13:06 +0200 Subject: calendar S T colour >10 per date --- core/models/logbooks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/models/logbooks.py') diff --git a/core/models/logbooks.py b/core/models/logbooks.py index b0bde61..34032fd 100644 --- a/core/models/logbooks.py +++ b/core/models/logbooks.py @@ -85,12 +85,12 @@ class LogbookEntry(TroggleModel): if self in todays: index = todays.index(self) else: - print(f"DayIndex: Synchronization error. Restart server. {self}") + print(f"DayIndex: Synchronization error in logbook entries. Restart server or do full reset. {self}") index = 0 if index not in range(0, mx): - print(f"DayIndex: More than {mx-1} LogbookEntry items on one day '{index}' {self}") - index = 0 + print(f"DayIndex: More than {mx-1} LogbookEntry items on one day '{index}' {self}, restarting colour sequence.") + index = index % mx return index -- cgit v1.2.3