Skip to content

Commit

Permalink
fix _vv generator
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryYuki committed Aug 24, 2024
1 parent fb7c0ab commit 0ae17dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion _redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ async def get_key(key: str) -> Optional[str]:
"""
try:
value = await redis_client.get(name=key)
return value
if value is not None:
return value.decode()
else:
return value
except redis.RedisError as e:
print(f"Error getting key from Redis: {e}")
return None
Expand Down
3 changes: 0 additions & 3 deletions _utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ async def generate_vv_detail():
if not success:
raise Exception('Failed to set vv')

if isinstance(vv, str) and vv.startswith('b'):
vv = vv.replace('b', '').replace("'", '')

return vv


Expand Down

0 comments on commit 0ae17dd

Please sign in to comment.