Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
why-not-try-calmer committed Aug 17, 2023
1 parent d6f02df commit caa09b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-app/qfieldcloud/core/views/files_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ def get(self, request: Request, projectid: str) -> Response:
path = PurePath(version.key)
filename = str(path.relative_to(*path.parts[:3]))
last_modified = version.last_modified.strftime("%d.%m.%Y %H:%M:%S %Z")
md5sum = version.e_tag.replace('"', "")

version_data = {
"size": version.size,
"md5sum": version.md5sum,
"md5sum": md5sum,
"version_id": version.version_id,
"last_modified": last_modified,
"is_latest": version.is_latest,
Expand Down Expand Up @@ -119,7 +120,7 @@ def get(self, request: Request, projectid: str) -> Response:

files[version.key]["name"] = filename
files[version.key]["size"] = version.size
files[version.key]["md5sum"] = version.md5sum
files[version.key]["md5sum"] = md5sum
files[version.key]["last_modified"] = last_modified
files[version.key]["is_attachment"] = is_attachment

Expand Down

0 comments on commit caa09b2

Please sign in to comment.