Skip to content

Commit

Permalink
parentheses for boolean order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Nov 13, 2024
1 parent 08250dc commit 30ca5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/es/es_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ def create_indexing_job(
server=server, name=base_name
)

if not add or update:
if not (add or update):
CreateIndexTask.objects.create(
job=job,
index=index,
production_settings=prod,
delete_existing=clear,
)

if not mappings_only or update:
if not (mappings_only or update):
PopulateIndexTask.objects.create(
job=job,
index=index,
Expand Down

0 comments on commit 30ca5f7

Please sign in to comment.