Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Resint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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-Resint
Commits
66bbc1af
Commit
66bbc1af
authored
5 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Show menu pdf for next week already an saturdays and sundays (issue #232)
parent
256b85c3
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
biscuit/apps/mensa/views.py
+4
-0
4 additions, 0 deletions
biscuit/apps/mensa/views.py
with
4 additions
and
0 deletions
biscuit/apps/mensa/views.py
+
4
−
0
View file @
66bbc1af
import
datetime
import
os
import
time
from
django.contrib.auth.decorators
import
login_required
,
permission_required
from
django.http
import
FileResponse
...
...
@@ -66,6 +67,9 @@ def show_current(request):
if
days_to_add
<
0
:
days_to_add
=
days_to_add
+
7
if
days_to_add
==
6
or
days_to_add
==
7
:
calendar_week
+=
1
# Create datetime with next friday and time 14:10
friday
=
current_date
+
datetime
.
timedelta
(
days
=
days_to_add
)
friday_14_10
=
timezone
.
datetime
(
friday
.
year
,
friday
.
month
,
friday
.
day
,
14
,
10
)
...
...
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