Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
97b8acc9
Unverified
Commit
97b8acc9
authored
Apr 01, 2017
by
Thom Wiggers
📐
Browse files
Fix pep8
parent
91dcf663
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/utils/snippets.py
View file @
97b8acc9
import
os
from
django.utils
import
timezone
from
django.utils.six.moves.urllib.parse
import
unquote
def
datetime_to_lectureyear
(
date
):
...
...
@@ -28,8 +25,3 @@ def datetime_to_lectureyear(date):
if
date
<
sept_1
.
date
():
return
date
.
year
-
1
return
date
.
year
if
__name__
==
"__main__"
:
import
doctest
doctest
.
testmod
()
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