Skip to content

Commit

Permalink
Flake8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed May 27, 2024
1 parent 2819170 commit 5fb255f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion omero_script_ui/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
re_path(r"^post_file_annotation/$", views.post_file_annotation,
name="scriptui_post_file_annotation"),

re_path(r"^read_csv_annotation/(?P<annId>[0-9]+)/$", views.read_csv_annotation,
re_path(r"^read_csv_annotation/(?P<ann_id>[0-9]+)/$", views.read_csv_annotation,
name="scriptui_read_csv_annotation"),
]
4 changes: 2 additions & 2 deletions omero_script_ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ def post_file_annotation(request, conn=None, **kwargs):


@login_required()
def read_csv_annotation(request, annId, conn=None, **kwargs):
def read_csv_annotation(request, ann_id, conn=None, **kwargs):
"""
Use read_csv() function copied from Import_from_csv script
Returns JSON of rows (first 10), header, namespaces and row_count
"""

file_ann = conn.getObject("Annotation", annId)
file_ann = conn.getObject("Annotation", ann_id)
if file_ann is None:
return JsonResponse({"Error": "Annotation not Found"})
original_file = file_ann.getFile()
Expand Down

0 comments on commit 5fb255f

Please sign in to comment.