Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:pepkit/pephub into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ayobi committed Jul 20, 2023
2 parents 138c262 + f880acf commit d02cbca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pephub/routers/api/v1/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ async def upload_raw_pep(
overwrite = project_from_json.overwrite
pep_schema = project_from_json.pep_schema
if hasattr(project_from_json, NAME_KEY):
name = project_from_json.name
if project_from_json.name:
name = project_from_json.name
else:
name = project_from_json.pep_dict.config.get(NAME_KEY)
else:
name = project_from_json.pep_dict.config.get(NAME_KEY)
if hasattr(project_from_json, DESC_KEY):
Expand Down

0 comments on commit d02cbca

Please sign in to comment.