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
Commits
a7eb4dc1
Verified
Commit
a7eb4dc1
authored
5 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix path of get_next_relevant_day
parent
0e0eacb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!36
Dashboard widget for SMART PLAN
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/chronos/dashboard.py
+1
-2
1 addition, 2 deletions
aleksis/apps/chronos/dashboard.py
with
1 addition
and
2 deletions
aleksis/apps/chronos/dashboard.py
+
1
−
2
View file @
a7eb4dc1
...
...
@@ -8,7 +8,6 @@ from django_global_request.middleware import get_request
from
aleksis.apps.chronos.models
import
TimePeriod
from
aleksis.apps.chronos.util.date
import
get_name_for_day_from_today
from
aleksis.apps.chronos.util.prev_next
import
get_next_relevant_day
from
aleksis.core.models
import
DashboardWidget
from
aleksis.core.util.core_helpers
import
has_person
...
...
@@ -19,7 +18,7 @@ class TimetableWidget(DashboardWidget):
def
get_context
(
self
):
request
=
get_request
()
context
=
{
"
has_plan
"
:
True
}
wanted_day
=
get_next_relevant_day
(
timezone
.
now
().
date
(),
datetime
.
now
().
time
())
wanted_day
=
TimePeriod
.
get_next_relevant_day
(
timezone
.
now
().
date
(),
datetime
.
now
().
time
())
if
has_person
(
request
.
user
):
person
=
request
.
user
.
person
...
...
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