Don't know
This commit is contained in:
@@ -485,13 +485,17 @@ def logout(request):
|
||||
|
||||
def get_current_md(ls,season):
|
||||
""" get current matchday """
|
||||
"""
|
||||
try:
|
||||
current_md = Match.objects.filter(leagueShortcut=ls, season=season, \
|
||||
finished=False).order_by('matchday').values_list('matchday', \
|
||||
flat=True).distinct()[0]
|
||||
except IndexError:
|
||||
current_md = Match.objects.filter(leagueShortcut=ls, season=season).aggregate(Max('matchday'))
|
||||
|
||||
except:
|
||||
current_md = 34
|
||||
"""
|
||||
current_md = 34
|
||||
return(current_md)
|
||||
|
||||
def get_current_ls():
|
||||
|
||||
Reference in New Issue
Block a user