Fixed student import

This commit is contained in:
Claude Paroz 2017-07-19 11:33:54 +02:00
parent 843526bf27
commit 26630687db
6 changed files with 79 additions and 56 deletions

View file

@ -12,3 +12,11 @@ def school_year(date, as_tuple=False):
return (start_year, start_year + 1)
else:
return "%d%d" % (start_year, start_year + 1)
def is_int(s):
try:
int(s)
return True
except ValueError:
return False