Skip to content

Commit

Permalink
Merge pull request #145 from ral-facilities/DSEGOG-368-Fix-API-Depend…
Browse files Browse the repository at this point in the history
…abot-security-vulnerability

DSEGOG-368 fix api dependabot security vulnerability
  • Loading branch information
moonraker595 authored Nov 27, 2024
2 parents 8ba1a40 + 9971b33 commit d3953df
Show file tree
Hide file tree
Showing 3 changed files with 1,004 additions and 1,490 deletions.
6 changes: 3 additions & 3 deletions operationsgateway_api/src/routes/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ async def count_records(
async def convert_search_ranges(
access_token: AuthoriseToken,
shotnum_range: Json = Query(
{},
"{}",
description='Min and max shot number range (e.g. {"min": 200, "max": 500})',
),
date_range: Json = Query(
{},
"{}",
description="From and to date range (e.g."
' {"from": "2022-04-07 14:16:19", "to": "2022-04-07 21:00:00"})',
),
Expand Down Expand Up @@ -196,7 +196,7 @@ async def get_record_by_id(
description="`_id` of the record to fetch from the database",
),
],
conditions: Json = Query({}, description="Conditions to apply to the query"),
conditions: Json = Query("{}", description="Conditions to apply to the query"),
truncate: Optional[bool] = Query(
False,
description="Parameter used for development to reduce the output of"
Expand Down
Loading

0 comments on commit d3953df

Please sign in to comment.