Skip to content

Commit

Permalink
Merge branch 'main' into cz/fix-folder-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristhianzl authored Dec 12, 2024
2 parents 5b1e1be + 2e7a5cd commit e97b79e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import asyncio
import uuid
from collections.abc import Callable, Sequence
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar
Expand Down Expand Up @@ -439,7 +440,8 @@ async def variables(self, name: str, field: str):
variable_service = get_variable_service() # Get service instance
# Retrieve and decrypt the variable by name for the current user
async with async_session_scope() as session:
user_id = self.user_id or ""
if isinstance(self.user_id, str):
user_id = uuid.UUID(self.user_id)
return await variable_service.get_variable(user_id=user_id, name=name, field=field, session=session)

async def list_key_names(self):
Expand Down

0 comments on commit e97b79e

Please sign in to comment.