From 665fbf852aab412ff14b0f3a72bfa162b5284510 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 27 Sep 2024 14:25:00 +0200 Subject: [PATCH] fix link snapshot with user --- api/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/views.py b/api/views.py index f852c05..4013012 100644 --- a/api/views.py +++ b/api/views.py @@ -60,9 +60,7 @@ def NewSnapshot(request): # save_in_disk(data, tk.user) try: - # Build(data, tk.user) - user = User.objects.get(email="user@example.org") - Build(data, user) + Build(data, tk.user) except Exception: return JsonResponse({'status': 'fail'}, status=200)