Skip to content

Commit

Permalink
Clean up whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormheg committed Jun 18, 2023
1 parent 1ab87aa commit 436041b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions wagtail_ab_testing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from .events import get_event_types


class AbTestManager(models.Manager):
def get_current_for_page(self, page):
return self.get_queryset().filter(page=page).exclude(status__in=[AbTest.STATUS_CANCELLED, AbTest.STATUS_COMPLETED]).first()
Expand Down
2 changes: 1 addition & 1 deletion wagtail_ab_testing/test/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from wagtail import hooks

from wagtail_ab_testing.events import BaseEvent


Expand Down
6 changes: 3 additions & 3 deletions wagtail_ab_testing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def add_compare(request, page_id):
.get_bound_panel(page, request=request, form=None)
.get_comparison()
)

comparison = [comp(page, latest_revision_as_page) for comp in comparison]
comparison = [comp for comp in comparison if comp.has_changed()]

Expand Down Expand Up @@ -154,9 +154,9 @@ def add_form(request, page_id):
Template: wagtail_ab_testing/add_form.html is rendered here
Passing this to the template so we can test for it where an include is used because we can't use
"wagtailadmin/pages/_editor_css.html" as it's not available in Wagtail 4+
"wagtailadmin/pages/_editor_css.html" as it's not available in Wagtail 4+
"""

return render(
request,
"wagtail_ab_testing/add_form.html",
Expand Down

0 comments on commit 436041b

Please sign in to comment.