Skip to content

Commit

Permalink
fix: add decoding at share pray
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Nov 7, 2023
1 parent a3b90ce commit 88a02ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/utils/share.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import base64
from datetime import timedelta
import datetime
import uuid
Expand Down Expand Up @@ -34,8 +35,8 @@ def __repr__(self):
return {
'pray_id': self.storage_id,
'share_name': self.storage.user.name,
'target': self.storage.pray.target,
'title': self.storage.pray.title,
'target': base64.b64decode(self.storage.pray.target).decode('utf-8'),
'title': base64.b64decode(self.storage.pray.title).decode('utf-8'),
'shared_at': self.shared_at.strftime('%Y-%m-%d %H:%M:%S')
}

Expand Down

0 comments on commit 88a02ba

Please sign in to comment.