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
ad707a75
Commit
ad707a75
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_contains' into 'master'
Fixed calendarweek.py See merge request
!9
parents
96074a20
ed5a33bc
No related branches found
No related tags found
1 merge request
!9
Fixed calendarweek.py
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
calendarweek/calendarweek.py
+1
-1
1 addition, 1 deletion
calendarweek/calendarweek.py
with
1 addition
and
1 deletion
calendarweek/calendarweek.py
+
1
−
1
View file @
ad707a75
...
...
@@ -125,7 +125,7 @@ class CalendarWeek:
return
datetime
.
strptime
(
"
%d-%d-%d
"
%
(
self
.
year
,
self
.
week
,
n
+
1
),
"
%G-%V-%u
"
).
date
()
def
__contains__
(
self
,
day
:
date
)
->
bool
:
return
self
.
__class__
.
f
o
rm_date
(
day
)
==
self
return
self
.
__class__
.
fr
o
m_date
(
day
)
==
self
def
__eq__
(
self
,
other
:
CalendarWeek
)
->
bool
:
return
self
.
year
==
other
.
year
and
self
.
week
==
other
.
week
...
...
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