Skip to content

Commit

Permalink
IA-3020 Entities page: remove column 'Programme'
Browse files Browse the repository at this point in the history
It comes specifically from WFP, it's not relevant.
  • Loading branch information
bramj committed May 28, 2024
1 parent 9c7f9bf commit ab1a4de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions iaso/api/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,8 @@ def list(self, request: Request, *args, **kwargs):
attributes_latitude = attributes.location.y if attributes.location else None # type: ignore
attributes_longitude = attributes.location.x if attributes.location else None # type: ignore
name = None
program = None
if file_content is not None:
name = file_content.get("name")
program = file_content.get("program")
duplicates = []
# invokes many SQL queries and not needed for map display
if not as_location and not is_export:
Expand All @@ -403,7 +401,6 @@ def list(self, request: Request, *args, **kwargs):
"entity_type": entity.entity_type.name,
"last_saved_instance": entity.last_saved_instance,
"org_unit": attributes_ou,
"program": program,
"duplicates": duplicates,
"latitude": attributes_latitude,
"longitude": attributes_longitude,
Expand All @@ -430,7 +427,6 @@ def list(self, request: Request, *args, **kwargs):
{"title": "Creation Date", "width": 20},
{"title": "HC", "width": 20},
{"title": "Last update", "width": 20},
{"title": "Program", "width": 20},
]
for col in columns_list:
columns.append({"title": col["label"]})
Expand All @@ -454,7 +450,6 @@ def get_row(entity: dict, **kwargs):
created_at,
entity["org_unit"]["name"] if entity["org_unit"] else "",
last_saved_instance,
entity["program"],
]
for col in columns_list:
values.append(entity.get(col["name"]))
Expand Down

0 comments on commit ab1a4de

Please sign in to comment.