Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Chronos
Merge requests
!33
Move min_max helpers to TimePeriod as properties
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Move min_max helpers to TimePeriod as properties
bugfix/move-min-max-to-model
into
master
Overview
2
Commits
2
Pipelines
0
Changes
4
Merged
Nik | Klampfradler
requested to merge
bugfix/move-min-max-to-model
into
master
5 years ago
Overview
2
Commits
2
Pipelines
0
Changes
2
Expand
Closes
#59 (closed)
and
#43 (closed)
(by fixing the aggregate defaults while at it).
Edited
5 years ago
by
Nik | Klampfradler
0
0
Merge request reports
Compare
version 1
version 2
d924fb55
5 years ago
version 1
bb049cf9
5 years ago
master (base)
and
latest version
latest version
898e7664
2 commits,
5 years ago
version 2
d924fb55
1 commit,
5 years ago
version 1
bb049cf9
1 commit,
5 years ago
Show latest version
2 files
+
8
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/chronos/util/prev_next.py
+
1
−
1
Options
@@ -5,7 +5,7 @@ from calendarweek import CalendarWeek
from
django.urls
import
reverse
from
django.utils
import
timezone
from
.models
import
TimePeriod
from
.
.models
import
TimePeriod
def
get_next_relevant_day
(
day
:
Optional
[
date
]
=
None
,
time
:
Optional
[
time
]
=
None
,
prev
:
bool
=
False
)
->
date
:
Loading