Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishReddyRavula committed Oct 5, 2023
1 parent ca90eca commit 540bd41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sharing_portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ def _compute_artifact_fields(artifact):
terms.extend([f"badge:{badge.badge.name}" for badge in artifact["badges"]])
artifact["search_terms"] = terms
artifact["is_private"] = artifact["visibility"] == "private"
artifact["has_doi"] = any([
_parse_doi(version)
for version in artifact["versions"]
])
artifact["has_doi"] = any([_parse_doi(version) for version in artifact["versions"]])
return artifact


Expand Down

0 comments on commit 540bd41

Please sign in to comment.