Skip to content

Commit

Permalink
Add previously removed columns to agencies data source subquery
Browse files Browse the repository at this point in the history
  • Loading branch information
maxachis committed Nov 18, 2024
1 parent 3356f27 commit 77eefd2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion database_client/subquery_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,18 @@ def get_subquery_params(
get_subquery_params,
relation=Relations.AGENCIES_EXPANDED,
linking_column="agencies",
columns=["id", "name"],
columns=[
"id",
"name",
"submitted_name",
"state_name",
"locality_name",
"state_iso",
"county_name",
"agency_type",
"jurisdiction_type",
"homepage_url"
],
)

data_requests = partialmethod(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ class DataSourceGetSchema(DataSourceExpandedSchema):
agencies = fields.List(
fields.Nested(
AgenciesExpandedSchema(
only=["id", "name"],
only=[
"id",
"name",
"submitted_name",
"state_name",
"locality_name",
"state_iso",
"county_name",
"agency_type",
"jurisdiction_type",
"homepage_url"
],
),
metadata=get_json_metadata("The agencies associated with the data source."),
),
Expand Down

0 comments on commit 77eefd2

Please sign in to comment.