Skip to content

Commit

Permalink
Fixing args
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Dec 18, 2024
1 parent b2b5e38 commit f5fe7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/tuber/backgroundjobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ def get_view_function(self, path, method):

try:
# return the view function and arguments
return app.view_functions[match[0]], match[1]
return app.view_functions[match[0]]
except KeyError:
# no view is associated with the endpoint
return None

def __call__(self, environ, start_response):
# If the function says it's a generator then we just return it immediately
func, args = self.get_view_function(environ['PATH_INFO'], environ['REQUEST_METHOD'])
func = self.get_view_function(environ['PATH_INFO'], environ['REQUEST_METHOD'])
if func and hasattr(func, "generator") and getattr(func, "generator"):
return self.application(environ, start_response)

Expand Down

0 comments on commit f5fe7ee

Please sign in to comment.