Skip to content

Commit

Permalink
[!] fix sns avatar - pic
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Nov 10, 2024
1 parent 021597d commit 2d7f5e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/resolver/sns.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Zella Zhong
Date: 2024-11-07 19:55:46
LastEditors: Zella Zhong
LastEditTime: 2024-11-10 23:09:28
LastEditTime: 2024-11-10 23:14:40
FilePath: /data_service/src/resolver/sns.py
Description:
'''
Expand Down Expand Up @@ -398,6 +398,8 @@ async def batch_query_sns_profile_by_id_from_db(query_ids) -> typing.List[Ident
if texts_v2:
process_texts = {key: unquote(text, 'utf-8') for key, text in texts_v2.items() if text != ""}
avatar = process_texts.get("pic", None)
if avatar is not None:
del process_texts["pic"]
texts = process_texts

if not texts:
Expand Down
4 changes: 3 additions & 1 deletion src/resolver/solana.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Zella Zhong
Date: 2024-10-07 23:11:29
LastEditors: Zella Zhong
LastEditTime: 2024-11-10 23:09:34
LastEditTime: 2024-11-10 23:15:11
FilePath: /data_service/src/resolver/solana.py
Description:
'''
Expand Down Expand Up @@ -318,6 +318,8 @@ async def batch_query_profile_by_address_db(query_ids) -> typing.List[IdentityRe
if texts_v2:
process_texts = {key: unquote(text, 'utf-8') for key, text in texts_v2.items() if text != ""}
avatar = process_texts.get("pic", None)
if avatar is not None:
del process_texts["pic"]
texts = process_texts

if not texts:
Expand Down

0 comments on commit 2d7f5e8

Please sign in to comment.