Skip to content

Commit

Permalink
correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
eveleighoj committed Jan 14, 2024
1 parent fc2ffab commit 4348994
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions application/core/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,9 @@ def entity_name_filter(eval_ctx, id):

@pass_eval_context
def get_entity_name_filter(eval_ctx, entity):
logging.warning("entity_name_filter")
logging.warning(entity["name"])
if entity:
if eval_ctx.autoescape:
if entity.name:
logging.warning("entity_name_filter")
logging.warning(entity["name"])
return entity.name
else:
return entity.reference
Expand Down
6 changes: 1 addition & 5 deletions application/routers/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ def get_entity(
dataset_fields = [dataset_field["dataset"] for dataset_field in dataset_fields]

dataset = get_dataset_query(session, e.dataset)

organisation_entity, _, _ = get_entity_query(session, e.organisation_entity)
logging.warning("in entity function")
logging.warning(e.organisation_entity)
logging.warning(organisation_entity)
return templates.TemplateResponse(
"entity.html",
{
Expand All @@ -157,7 +153,7 @@ def get_entity(
"fields": fields,
"dataset_fields": dataset_fields,
"dataset": dataset,
"orgnisation_entity": organisation_entity,
"organisation_entity": organisation_entity,
},
)
else:
Expand Down

0 comments on commit 4348994

Please sign in to comment.