Skip to content

Commit

Permalink
flake8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 12, 2024
1 parent 2fb7815 commit 40e1f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion omero_figure/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def parents(request, conn=None, **kwargs):
try:
image_ids = [int(iid) for iid in image_ids]
except ValueError:
return Http404 ("Invalid 'image' id")
return Http404("Invalid 'image' id")

parents = {}
for img_id in image_ids:
Expand Down
3 changes: 1 addition & 2 deletions src/js/models/panel_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@
}
} else {
// screen, plate, well, (name or id)
console.log("get_name_label_text", property, format, this.get(property));
text = this.get(property)?.[format] ?? "Not Found";
text = "" + this.get(property)?.[format] ?? "Not Found";
}
return text;
},
Expand Down

0 comments on commit 40e1f6a

Please sign in to comment.