Commit b0cd3556 authored by fabian serin's avatar fabian serin
Browse files

fixing default parameter for attribute search

parent 0104afc1
Pipeline #58845 failed with stages
in 6 minutes and 44 seconds
......@@ -64,7 +64,7 @@ async def fastquery_welllogs_bywellbore(wellbore_id: str, body: SearchQueryReque
with this specific attribute will be returned</p>
<p>The LogSet kind is {OSDU_WELLLOG_KIND} returns all records IDs directly based on existing schemas</p>{REQUIRED_ROLES_READ}""",
response_model=CursorQueryResponse)
async def fastquery_welllogs_bywellboreattribute(wellbore_attribute: str, body: SearchQuery = None,
async def fastquery_welllogs_bywellboreattribute(wellbore_attribute: str, body: SearchQuery = SearchQuery(query=None),
ctx: Context = Depends(get_ctx)):
return await query_request_with_specific_attribute(query_type, wellbore_attribute, OSDU_WELLBORE_KIND,
OSDU_WELLLOG_KIND, WELLBORE_RELATIONSHIP, ctx,
......
......@@ -207,7 +207,7 @@ async def query_welllogs_bywellbore(wellboreId: str, body: SearchQueryRequest =
with this specific attribute will be returned</p>
<p>The WellLogs kind is {OSDU_WELLLOG_KIND} returns all records directly based on existing schemas</p>{REQUIRED_ROLES_READ}""",
response_model=CursorQueryResponse)
async def query_welllogs_bywellboreattribute(wellboreAttribute: str, body: SearchQuery = None,
async def query_welllogs_bywellboreattribute(wellboreAttribute: str, body: SearchQuery = SearchQuery(query=None),
ctx: Context = Depends(get_ctx)):
return await query_request_with_specific_attribute(query_type, wellboreAttribute, OSDU_WELLBORE_KIND,
OSDU_WELLLOG_KIND,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment