* feat: added mobile configs in enrollments api Mobile team needs some cnfigs after user has logged in, enrollment api seems to be the best place to put this data. They can change these flags or values from admin side. LEARNER-9039
13 lines
237 B
Python
13 lines
237 B
Python
"""
|
|
Common utility methods for Mobile APIs.
|
|
"""
|
|
|
|
API_V05 = 'v0.5'
|
|
API_V1 = 'v1'
|
|
API_V2 = 'v2'
|
|
|
|
|
|
def parsed_version(version):
|
|
""" Converts string X.X.X.Y to int tuple (X, X, X) """
|
|
return tuple(map(int, (version.split(".")[:3])))
|