Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-calendarweek
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
python-calendarweek
Commits
8ff5623c
Commit
8ff5623c
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Fix type cast from GET
parent
67c8d913
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
calendarweek/django.py
+1
-1
1 addition, 1 deletion
calendarweek/django.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
2 additions
and
2 deletions
calendarweek/django.py
+
1
−
1
View file @
8ff5623c
...
@@ -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
]
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
8ff5623c
[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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment