diff --git a/.DS_Store b/.DS_Store index 497d95b..9f9f6eb 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/media/pom-1.apk b/media/pom-1.apk new file mode 100644 index 0000000..f164810 Binary files /dev/null and b/media/pom-1.apk differ diff --git a/polls/views/__pycache__/download.cpython-38.pyc b/polls/views/__pycache__/download.cpython-38.pyc index 039011e..3db452e 100644 Binary files a/polls/views/__pycache__/download.cpython-38.pyc and b/polls/views/__pycache__/download.cpython-38.pyc differ diff --git a/polls/views/download.py b/polls/views/download.py index 54077f6..1357d83 100644 --- a/polls/views/download.py +++ b/polls/views/download.py @@ -26,4 +26,4 @@ def download(request): def has_update(request): version = request.GET.get('version', '1') last = AppVersion.objects.first() - return JsonResponse({'status': 'success', 'message': last != version}) + return JsonResponse({'status': 'success', 'message': str(last.version) != version})