fix link snapshot with user

This commit is contained in:
Cayo Puigdefabregas 2024-09-27 14:25:00 +02:00
parent 9dfaf0f60b
commit 665fbf852a
1 changed files with 1 additions and 3 deletions

View File

@ -60,9 +60,7 @@ def NewSnapshot(request):
# save_in_disk(data, tk.user) # save_in_disk(data, tk.user)
try: try:
# Build(data, tk.user) Build(data, tk.user)
user = User.objects.get(email="user@example.org")
Build(data, user)
except Exception: except Exception:
return JsonResponse({'status': 'fail'}, status=200) return JsonResponse({'status': 'fail'}, status=200)