Skip to content

Commit

Permalink
[ UPDATE ] TaskTestView - sum float support
Browse files Browse the repository at this point in the history
  • Loading branch information
ychevarrias committed May 27, 2022
1 parent 1bd908e commit c13da2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/django-boilerplate.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/usuario/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TaskTestView(TemplateView):

def get_context_data(self, **kwargs):
numbers_raw = self.request.GET.get("sum", "1,1")
numbers = map(int, numbers_raw.split(","))
numbers = map(float, numbers_raw.split(","))
async_task = test_task.apply_async(
countdown=5, args=list(numbers)
)
Expand Down

0 comments on commit c13da2e

Please sign in to comment.