Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross-Clark committed Jul 18, 2024
1 parent d196f99 commit d951675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamfieldindex/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def index_page(page):
# Clear the index for this specific page
IndexEntry.objects.filter(page__id=page.id).delete()

if page.live: # we dont want to index any draft/unpublished pages
if page.live: # we dont want to index any draft/unpublished pages
for field in page._meta.fields:
if not isinstance(field, StreamField):
# We are only interested in streamfields. Skip over non-streamfield fields
Expand All @@ -36,7 +36,7 @@ def index_field(field, page):

field_name = field.name
streamvalue = getattr(page, field_name)
for (block, path) in flatten_streamfield(streamvalue):
for block, path in flatten_streamfield(streamvalue):
field_name = field_name
block_name = path[-1]

Expand Down

0 comments on commit d951675

Please sign in to comment.