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
4cd826f2
Verified
Commit
4cd826f2
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Reformat and fix lint
parent
ce2016aa
No related branches found
No related tags found
1 merge request
!77
Resolve "PDF export for timetables"
Pipeline
#5519
passed
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/chronos/urls.py
+2
-8
2 additions, 8 deletions
aleksis/apps/chronos/urls.py
aleksis/apps/chronos/views.py
+1
-5
1 addition, 5 deletions
aleksis/apps/chronos/views.py
with
3 additions
and
13 deletions
aleksis/apps/chronos/urls.py
+
2
−
8
View file @
4cd826f2
...
...
@@ -10,11 +10,7 @@ urlpatterns = [
views
.
my_timetable
,
name
=
"
my_timetable_by_date
"
,
),
path
(
"
timetable/<str:type_>/<int:pk>/
"
,
views
.
timetable
,
name
=
"
timetable
"
,
),
path
(
"
timetable/<str:type_>/<int:pk>/
"
,
views
.
timetable
,
name
=
"
timetable
"
,),
path
(
"
timetable/<str:type_>/<int:pk>/<int:year>/<int:week>/
"
,
views
.
timetable
,
...
...
@@ -27,9 +23,7 @@ urlpatterns = [
name
=
"
timetable_print
"
,
),
path
(
"
timetable/<str:type_>/<int:pk>/<str:regular>/
"
,
views
.
timetable
,
name
=
"
timetable_regular
"
,
"
timetable/<str:type_>/<int:pk>/<str:regular>/
"
,
views
.
timetable
,
name
=
"
timetable_regular
"
,
),
path
(
"
lessons/
"
,
views
.
lessons_day
,
name
=
"
lessons_day
"
),
path
(
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/chronos/views.py
+
1
−
5
View file @
4cd826f2
from
datetime
import
datetime
,
timedelta
from
typing
import
Optional
import
subprocess
from
tempfile
import
mkstemp
from
django.db.models
import
Count
,
Q
from
django.http
import
HttpRequest
,
HttpResponse
,
HttpResponseNotFound
,
FileResponse
from
django.http
import
HttpRequest
,
HttpResponse
,
HttpResponseNotFound
from
django.shortcuts
import
get_object_or_404
,
redirect
,
render
from
django.urls
import
reverse
from
django.utils
import
timezone
from
django.utils.translation
import
ugettext
as
_
from
django.views.decorators.cache
import
never_cache
from
django.template.loader
import
get_template
,
render_to_string
from
django_tables2
import
RequestConfig
from
rules.contrib.views
import
permission_required
...
...
@@ -28,7 +25,6 @@ from .util.build import build_substitutions_list, build_timetable, build_weekday
from
.util.chronos_helpers
import
get_el_by_pk
,
get_substitution_by_id
from
.util.date
import
CalendarWeek
,
get_weeks_for_year
from
.util.js
import
date_unix
from
aleksis.core.settings
import
STATIC_ROOT
@permission_required
(
"
chronos.view_timetable_overview
"
)
...
...
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