Skip to content

Commit

Permalink
Merge pull request #496 from hubmapconsortium/libpitt/use-operator
Browse files Browse the repository at this point in the history
Use != operator instead of 'is not' identity check
  • Loading branch information
yuanzhou authored Feb 19, 2024
2 parents 1f8d98c + 0dcf89d commit 1e8f120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ def update_datasets_datastatus():
dataset['has_dataset_metadata'] = has_dataset_metadata

for prop in dataset:
if isinstance(dataset[prop], list) and prop is not 'descendant_datasets':
if isinstance(dataset[prop], list) and prop != 'descendant_datasets':
dataset[prop] = ", ".join(dataset[prop])
if isinstance(dataset[prop], (bool, int)):
dataset[prop] = str(dataset[prop])
Expand Down

0 comments on commit 1e8f120

Please sign in to comment.