From ec25ffe6ba940a67a70b010781c2e6b56abb5148 Mon Sep 17 00:00:00 2001 From: x3005504 Date: Tue, 11 Oct 2022 14:07:17 +0200 Subject: [PATCH] re-format code --- bookwyrm/forms/forms.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bookwyrm/forms/forms.py b/bookwyrm/forms/forms.py index 0715be62b..667c02583 100644 --- a/bookwyrm/forms/forms.py +++ b/bookwyrm/forms/forms.py @@ -59,11 +59,17 @@ class ReadThroughForm(CustomForm): "stopped_date", _("Reading stopped date cannot be before start date.") ) current_time = datetime.datetime.now() - if stopped_date is not None and current_time.timestamp() < stopped_date.timestamp(): + if ( + stopped_date is not None + and current_time.timestamp() < stopped_date.timestamp() + ): self.add_error( "stopped_date", _("Reading stopped date cannot be in the future.") ) - if finish_date is not None and current_time.timestamp() < finish_date.timestamp(): + if ( + finish_date is not None + and current_time.timestamp() < finish_date.timestamp() + ): self.add_error( "finish_date", _("Reading finished date cannot be in the future.") )