Skip to content

Commit

Permalink
Few updates in endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Sep 18, 2024
1 parent 76ac397 commit 588df3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pephub/routers/api/v1/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ async def create_pep(
p = Project(f"{dirpath}/{init_file.filename}")
p.name = name
p.description = description
p.pep_schema = pep_schema
try:
agent.project.create(
p,
Expand All @@ -191,7 +190,7 @@ async def create_pep(
tag=tag,
description=description,
is_private=is_private,
pep_schema=pep_schema,
pep_schema=pep_schema or "databio/pep-2.1.0",
)
except ProjectUniqueNameError:
raise HTTPException(
Expand Down Expand Up @@ -235,7 +234,7 @@ async def upload_raw_pep(
is_private = project_from_json.is_private
tag = project_from_json.tag
overwrite = project_from_json.overwrite
pep_schema = project_from_json.pep_schema
pep_schema = project_from_json.pep_schema or "databio/pep-2.1.0"
pop = project_from_json.pop or False
if hasattr(project_from_json, NAME_KEY):
if project_from_json.name:
Expand Down

0 comments on commit 588df3c

Please sign in to comment.