Skip to content

Commit

Permalink
typp
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Nov 2, 2023
1 parent e9505e0 commit 1a96dd7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions dcicutils/ff_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,18 +997,7 @@ def get_schema(name, key=None, ff_env: Optional[str] = None, portal_env: Optiona
portal_env = resolve_portal_env(ff_env=ff_env, portal_env=portal_env, portal_vapp=portal_vapp)
base_url = f"profiles/{to_camel_case(name)}.json"
add_on = 'frame=raw'

schema = get_metadata(obj_id=base_url, key=key, ff_env=portal_env, add_on=add_on, vapp=portal_vapp) # xyzzy: is this okay? test
return schema

if portal_vapp:
full_url = f"/{base_url}?{add_on}"
res = portal_vapp.get(full_url)
return get_response_json(res)
else:
schema = get_metadata(obj_id=base_url, key=key, ff_env=portal_env, add_on=add_on)
return schema

return get_metadata(obj_id=base_url, key=key, ff_env=portal_env, add_on=add_on, vapp=portal_vapp)

def get_schemas(key=None, ff_env: Optional[str] = None, *, allow_abstract: bool = True, require_id: bool = False,
portal_env: Optional[str] = None, portal_vapp: Optional[VirtualApp] = None) -> Dict[str, Dict]:
Expand Down

0 comments on commit 1a96dd7

Please sign in to comment.