corrected android name

This commit is contained in:
rizwanisready
2024-05-21 16:50:02 +05:30
parent 7043e9bcf4
commit 7475031ec4
2 changed files with 4 additions and 1 deletions

View File

@@ -961,10 +961,13 @@ class VersionCheck(APIView):
app_version = request.GET.get("appVersion", None)
app_type = request.GET.get("type", None)
print(f"app verisino {app_version} {app_type}")
# Query the database to retrieve the upgrade flags based on the app version
try:
version = AppVersion.objects.get(version=app_version, app_type=app_type)
except AppVersion.DoesNotExist:
print("does not exist")
version = None
if version:

View File

@@ -503,7 +503,7 @@ class IAmPrincipalLocation(BaseModel):
class AppType(models.TextChoices):
ANDROID = "adroid", "android"
ANDROID = "android", "android"
IOS = "ios", "ios"