Skip to content

Commit

Permalink
set the forgotten data_last_updated_at
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Dec 12, 2024
1 parent 1c413d4 commit d4c671c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-app/qfieldcloud/filestorage/view_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from django.utils.translation import gettext as _
from django.http import FileResponse, HttpResponse
from django.http.response import HttpResponseBase
from django.utils import timezone

from rest_framework.exceptions import NotFound
from rest_framework.request import Request
Expand Down Expand Up @@ -138,6 +139,7 @@ def upload_project_file_version(
project=project, created_by=request.user
)

project.data_last_updated_at = timezone.now()
project.file_storage_bytes += file_version.size
project.save(update_fields=update_fields)
elif file_type == File.FileType.PACKAGE_FILE:
Expand Down

0 comments on commit d4c671c

Please sign in to comment.