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
491f0806
Verified
Commit
491f0806
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Fix issues reported by pylama.
parent
c02416a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/apps/chronos/models.py
+1
-3
1 addition, 3 deletions
biscuit/apps/chronos/models.py
biscuit/apps/chronos/views.py
+2
-2
2 additions, 2 deletions
biscuit/apps/chronos/views.py
with
3 additions
and
5 deletions
biscuit/apps/chronos/models.py
+
1
−
3
View file @
491f0806
from
datetime
import
datetime
from
datetime
import
datetime
from
typing
import
Dict
,
Optional
,
List
,
Tuple
from
typing
import
Dict
,
Optional
,
Tuple
from
django.core
import
validators
from
django.core
import
validators
from
django.db
import
models
from
django.db
import
models
...
@@ -7,8 +7,6 @@ from django.utils.translation import ugettext_lazy as _
...
@@ -7,8 +7,6 @@ from django.utils.translation import ugettext_lazy as _
from
.util
import
current_week
from
.util
import
current_week
from
biscuit.core.models
import
Person
class
TimePeriod
(
models
.
Model
):
class
TimePeriod
(
models
.
Model
):
WEEKDAY_CHOICES
=
[
WEEKDAY_CHOICES
=
[
...
...
This diff is collapsed.
Click to expand it.
biscuit/apps/chronos/views.py
+
2
−
2
View file @
491f0806
...
@@ -11,10 +11,10 @@ from django.utils.translation import ugettext as _
...
@@ -11,10 +11,10 @@ from django.utils.translation import ugettext as _
from
django_tables2
import
RequestConfig
from
django_tables2
import
RequestConfig
from
biscuit.core.decorators
import
admin_required
from
biscuit.core.decorators
import
admin_required
from
biscuit.core.
models
import
Group
,
Person
from
biscuit.core.
util
import
messages
from
.forms
import
SelectForm
,
LessonSubstitutionForm
from
.forms
import
SelectForm
,
LessonSubstitutionForm
from
.models
import
LessonPeriod
,
TimePeriod
,
Room
,
LessonSubstitution
from
.models
import
LessonPeriod
,
TimePeriod
,
LessonSubstitution
from
.util
import
current_week
,
week_weekday_from_date
,
week_days
from
.util
import
current_week
,
week_weekday_from_date
,
week_days
from
.tables
import
LessonsTable
from
.tables
import
LessonsTable
...
...
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