Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
8b26248e
Commit
8b26248e
authored
Jul 26, 2017
by
Andreas Valder
Browse files
fixed a bug in last commit
parent
1ee9236b
Changes
1
Hide whitespace changes
Inline
Side-by-side
timetable.py
View file @
8b26248e
...
...
@@ -24,7 +24,6 @@ def timetable():
weekofyear
=
str
(
datetime
.
today
().
year
)
+
"-W"
+
str
(
datetime
.
today
().
isocalendar
()[
1
])
else
:
datesweekmonday
-=
timedelta
(
days
=
datesweekmonday
.
weekday
())
weekofyear
=
str
(
datesweekmonday
.
year
)
+
"-W"
+
str
(
datesweekmonday
.
isocalendar
()[
1
])
kw
=
int
((
datesweekmonday
.
date
()
-
thisweekmonday
.
date
()).
days
/
7
)
else
:
kw
=
0
...
...
@@ -34,6 +33,7 @@ def timetable():
start
=
date
.
today
()
-
timedelta
(
days
=
date
.
today
().
weekday
()
-
7
*
kw
)
except
:
start
=
date
.
today
()
-
timedelta
(
days
=
date
.
today
().
weekday
())
weekofyear
=
str
(
start
.
year
)
+
"-W"
+
str
(
start
.
isocalendar
()[
1
])
days
=
[{
'date'
:
start
,
'lectures'
:
[],
'atonce'
:
0
,
'index'
:
0
}]
earlieststart
=
time
(
23
,
59
)
latestend
=
time
(
0
,
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment