Skip to content
GitLab
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
73a4845b
Commit
73a4845b
authored
Jan 26, 2017
by
tvbussel
Browse files
Fix years in statistics
Now uses the current lecture year instead of the current calendar year.
parent
a2c793a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/models.py
View file @
73a4845b
...
...
@@ -13,6 +13,7 @@ from django.utils.translation import ugettext_lazy as _
from
localflavor.generic.countries.sepa
import
IBAN_SEPA_COUNTRIES
from
localflavor.generic.models
import
IBANField
from
utils.snippets
import
datetime_to_lectureyear
from
utils.validators
import
validate_file_extension
...
...
@@ -440,7 +441,7 @@ def gen_stats_year(member_types):
students.
"""
stats_year
=
[]
current_year
=
date
.
today
()
.
year
current_year
=
datetime_to_lectureyear
(
date
.
today
()
)
for
i
in
range
(
5
):
new
=
dict
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment