Skip to content

Commit

Permalink
Even in mode basic, include the group into the returned md
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed May 25, 2020
1 parent b908afd commit 5f001ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions isogeo_pysdk/api/routes_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def create(
This option allow to overrides the basic behavior. Options:
- 0 = basic (only the _id, title and attributes passed for the creation) [DEFAULT]
- 1 = complete (make an addtionnal request)
- 1 = complete (make an additionnal request)
:rtype: Metadata
Expand Down Expand Up @@ -205,7 +205,9 @@ def create(
return req_check

# load new metadata
new_metadata = Metadata(**req_new_metadata.json())
resp_md = req_new_metadata.json()
resp_md["_creator"] = {"_id": workgroup_id}
new_metadata = Metadata(**resp_md)

# return basic metadata or complete
if return_basic_or_complete:
Expand Down

0 comments on commit 5f001ca

Please sign in to comment.