* feat: [AXM-24] Update structure for course enrollments API (#2515) --------- Co-authored-by: Glib Glugovskiy <glib.glugovskiy@raccoongang.com> * feat: [AXM-53] add assertions for primary course (#2522) --------- Co-authored-by: monteri <36768631+monteri@users.noreply.github.com> * feat: [AXM-297] Add progress to assignments in BlocksInfoInCourseView API (#2546) --------- Co-authored-by: NiedielnitsevIvan <81557788+NiedielnitsevIvan@users.noreply.github.com> Co-authored-by: Glib Glugovskiy <glib.glugovskiy@raccoongang.com> Co-authored-by: monteri <36768631+monteri@users.noreply.github.com>
15 lines
265 B
Python
15 lines
265 B
Python
"""
|
|
Common utility methods for Mobile APIs.
|
|
"""
|
|
|
|
API_V05 = 'v0.5'
|
|
API_V1 = 'v1'
|
|
API_V2 = 'v2'
|
|
API_V3 = 'v3'
|
|
API_V4 = 'v4'
|
|
|
|
|
|
def parsed_version(version):
|
|
""" Converts string X.X.X.Y to int tuple (X, X, X) """
|
|
return tuple(map(int, (version.split(".")[:3])))
|