Fix potential standings missing value

This commit is contained in:
Kevin Chung
2020-07-21 17:25:08 -04:00
parent 732193734f
commit cba0f7a0a3

View File

@@ -110,6 +110,8 @@ def get_standings(count=None, admin=False, fields=[], raw_query=False):
""" """
if count: if count:
standings = standings_query.limit(count) standings = standings_query.limit(count)
else:
standings = standings_query
""" """
Return the raw query if requested Return the raw query if requested
@@ -194,6 +196,8 @@ def get_team_standings(count=None, admin=False, fields=[], raw_query=False):
if count: if count:
standings = standings_query.limit(count) standings = standings_query.limit(count)
else:
standings = standings_query
if raw_query: if raw_query:
return standings return standings
@@ -274,6 +278,8 @@ def get_user_standings(count=None, admin=False, fields=[], raw_query=False):
if count: if count:
standings = standings_query.limit(count) standings = standings_query.limit(count)
else:
standings = standings_query
if raw_query: if raw_query:
return standings return standings