Skip to content

Commit

Permalink
chore: Update cipher history data
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitranquang committed Jun 3, 2024
1 parent cd690a5 commit 92e8ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locker_server/api_orm/model_parsers/cipher_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from locker_server.core.entities.cipher.cipher import Cipher
from locker_server.core.entities.cipher.cipher_history import CipherHistory
from locker_server.core.entities.cipher.folder import Folder
from locker_server.shared.utils.app import convert_readable_date


class CipherParser:
Expand Down Expand Up @@ -56,7 +57,7 @@ def parse_password_history(cls, cipher_orm: CipherORM) -> List:
data = history_orm.get("data")
data = {} if not data else ast.literal_eval(str(data))
history.append({
"last_use_date": history_orm.get("last_use_date"),
"last_use_date": convert_readable_date(history_orm.get("last_use_date")),
"password": data.get("password")
})
return history
Expand Down

0 comments on commit 92e8ba6

Please sign in to comment.