Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GooCalendar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Admin message
This instance will be upgraded to Heptapod 17.11.0rc1 on 2025-04-24 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
Tryton
GooCalendar
Commits
c02ea006
Commit
c02ea006
authored
12 years ago
by
Antoine Smolders
Browse files
Options
Downloads
Patches
Plain Diff
Fix method event_intersects when event end is None
parent
8e33cd1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GooCalendar/util.py
+4
-4
4 additions, 4 deletions
GooCalendar/util.py
with
4 additions
and
4 deletions
GooCalendar/util.py
+
4
−
4
View file @
c02ea006
...
...
@@ -86,6 +86,6 @@
def
event_intersects
(
event
,
start
,
end
=
None
):
if
end
i
s
None
:
end
=
start
end
=
end
i
f
end
else
start
event_end
=
event
.
end
if
event
.
end
else
event
.
start
return
((
event
.
start
>=
start
and
event
.
start
<
end
)
...
...
@@ -91,6 +91,6 @@
return
((
event
.
start
>=
start
and
event
.
start
<
end
)
or
(
event
.
end
>
start
and
event
.
end
<=
end
)
or
(
event
.
start
<
start
and
event
.
end
>
end
))
or
(
event
_
end
>
start
and
event
_
end
<=
end
)
or
(
event
.
start
<
start
and
event
_
end
>
end
))
def
get_intersection_list
(
list
,
start
,
end
):
...
...
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