diff --git a/libraries/admin.py b/libraries/admin.py index 1173761a..e79bc0b1 100644 --- a/libraries/admin.py +++ b/libraries/admin.py @@ -147,12 +147,7 @@ def get_template_names(self): return [self.form_template] if form.cleaned_data["no_cache"]: return [self.form_template] - content = form.cache_get() - if content: - if not content.content_html: - return [self.polling_template] - else: - return [self.polling_template] + return [self.polling_template] def get_form(self): data = None diff --git a/libraries/forms.py b/libraries/forms.py index f3828b29..eafceeee 100644 --- a/libraries/forms.py +++ b/libraries/forms.py @@ -562,7 +562,11 @@ def apply_colors(self): Graph.weeks.days. """ - high = self.max + if not (high := self.max): + # No commits this release + # TODO: we may want a more elegant solution + # than just not graphing this library + return for week in self.weeks: for day in week.days: decimal = day.count / high