Skip to content

Commit

Permalink
Update prettier_dir. Fix flake8 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Aug 9, 2023
1 parent a35feea commit 41dcf80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
eslint: true
eslint_dir: client/
prettier: false
prettier_lint: client/
prettier_dir: client/
4 changes: 2 additions & 2 deletions api/resources_portal/views/import_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def import_dataset(import_source, accession_code, user):
"number_of_samples": metadata["number_of_samples"],
}

if type(additional_metadata["technology"]) == list:
if isinstance(additional_metadata["technology"], list):
additional_metadata["technology"] = ", ".join(additional_metadata["technology"])

if type(additional_metadata["platform"]) == list:
if isinstance(additional_metadata["platform"], list):
additional_metadata["platform"] = ", ".join(additional_metadata["platform"])

human_readable_organisms = []
Expand Down

0 comments on commit 41dcf80

Please sign in to comment.