Skip to content

Commit

Permalink
Fix method names returning in uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 14, 2020
1 parent 1739da9 commit e00f12d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions labthings/server/spec/apispec.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def view_to_apispec_operations(view: View, spec: APISpec):
# Build dictionary of operations (HTTP methods)
ops = {}
for method in view.methods:
method = str(method).lower()
if hasattr(view, method):
ops[method] = {}
method_function = getattr(view, method)
Expand Down

0 comments on commit e00f12d

Please sign in to comment.