Skip to content
Snippets Groups Projects
Commit 8ff5623c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix type cast from GET

parent 67c8d913
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ def i18n_js(request: HttpRequest) -> HttpResponse: ...@@ -88,7 +88,7 @@ def i18n_js(request: HttpRequest) -> HttpResponse:
# Begin day names at this element # Begin day names at this element
# 0 (default = Monday, 6 = Sunday # 0 (default = Monday, 6 = Sunday
first_day = request.GET.get("first_day", 0) first_day = int(request.GET.get("first_day", "0"))
day_indices = list(range(first_day, 7)) + list(range(0, first_day)) day_indices = list(range(first_day, 7)) + list(range(0, first_day))
def reorder(l: List[Any], i: List[int]) -> List[Any]: def reorder(l: List[Any], i: List[int]) -> List[Any]:
return [l[n] for n in i] return [l[n] for n in i]
......
[tool.poetry] [tool.poetry]
name = "calendarweek" name = "calendarweek"
version = "0.3.0" version = "0.3.1"
description = "Utilities for working with calendar weeks in Python and Django" description = "Utilities for working with calendar weeks in Python and Django"
authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"] authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"]
license = "MIT" license = "MIT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment