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
Merge requests
!9
Fixed calendarweek.py
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed calendarweek.py
samkrdev/python-calendarweek:fix_contains
into
master
Overview
1
Commits
1
Changes
1
Merged
samkrdev
requested to merge
samkrdev/python-calendarweek:fix_contains
into
master
3 years ago
Overview
1
Commits
1
Changes
1
Expand
contains
method was not working due to a typo. Changed
form_Date
to
from_date
.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
ed5a33bc
1 commit,
3 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
calendarweek/calendarweek.py
+
1
−
1
Options
@@ -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
Loading