Skip to content

Commit

Permalink
Fix user data problem (#761)
Browse files Browse the repository at this point in the history
* bug crashing user account fixed

* release prepared
  • Loading branch information
sheenaze authored Oct 18, 2023
1 parent f073069 commit bce1143
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docker/compose/prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
restart: always

web:
image: "awst/qa4sm:2.4.2"
image: "awst/qa4sm:2.4.3"
restart: always
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
Expand Down Expand Up @@ -50,16 +50,16 @@ services:
target: /var/lib/qa4sm-web-val/valentina/data/user_data

proxy:
image: "awst/qa4sm-proxy:2.4.2"
image: "awst/qa4sm-proxy:2.4.3"
restart: always
ports:
- "8080:80"
ui:
image: "awst/qa4sm-ui:2.4.2"
image: "awst/qa4sm-ui:2.4.3"
restart: always

worker-1:
image: "awst/qa4sm-worker:2.4.2"
image: "awst/qa4sm-worker:2.4.3"
restart: always
environment:
QA4SM_DB_HOST: "${QA4SM_DB_HOST}"
Expand Down
5 changes: 5 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
QA4SM v2.4.3 - Release notes 2023-10-18
=======================================================
# Bug fix
1. Adding up file size updated to omit non-existing files

QA4SM v2.4.2 - Release notes 2023-10-11
=======================================================
# Improvements
Expand Down
2 changes: 1 addition & 1 deletion valentina/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APP_VERSION = '2.4.2'
APP_VERSION = '2.4.3'

2 changes: 1 addition & 1 deletion validator/models/custom_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def space_limit_value(self):
@property
def space_left(self):
if self.get_space_limit_display():
used_space = sum(file.file_size for file in self.user_datasets.all())
used_space = sum(file.file_size for file in self.user_datasets.all() if file.file)
return self.get_space_limit_display() - used_space

return
Expand Down

0 comments on commit bce1143

Please sign in to comment.