Skip to content

Commit

Permalink
fix(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Aug 9, 2024
1 parent 7dfbb1a commit 13a08f1
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 597 deletions.
1 change: 0 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
db:
environment:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
db:
image: postgres:alpine
Expand Down
2 changes: 0 additions & 2 deletions ebau_gwr/token_proxy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def decrypt(self, value):
def from_db_value(self, value, *_):
if value is None:
return value
if hasattr(value, "tobytes"):
value = value.tobytes()
return self.decrypt(value)

def get_prep_value(self, value):
Expand Down
2 changes: 1 addition & 1 deletion ebau_gwr/token_proxy/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def test_fernet_password_field(db, settings, pw):
if pw is None:
assert row[0] is None
return
assert f.decrypt(row[0].tobytes()).decode() == pw
assert f.decrypt(row[0]).decode() == pw
Loading

0 comments on commit 13a08f1

Please sign in to comment.