mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
add username to hub session and rename session folder to .openbb_sdk
This commit is contained in:
@@ -105,6 +105,7 @@ class HubManager:
|
||||
token_type=session.get("token_type"),
|
||||
user_uuid=session.get("uuid"),
|
||||
email=session.get("email"),
|
||||
username=session.get("username"),
|
||||
primary_usage=session.get("primary_usage"),
|
||||
)
|
||||
return hub_session
|
||||
@@ -132,6 +133,7 @@ class HubManager:
|
||||
access_token=session.get("access_token"),
|
||||
token_type=session.get("token_type"),
|
||||
user_uuid=session.get("uuid"),
|
||||
username=session.get("username"),
|
||||
email=session.get("email"),
|
||||
primary_usage=session.get("primary_usage"),
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ class HubSession(BaseModel):
|
||||
token_type: str
|
||||
user_uuid: str
|
||||
email: str
|
||||
username: str
|
||||
primary_usage: str
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
||||
@@ -27,7 +27,7 @@ class SystemSettings(Tagged):
|
||||
# TODO: Get the version of the SDK from somewhere that's not pyproject.toml
|
||||
version: str = "4.0.0dev"
|
||||
home_directory: str = str(Path.home())
|
||||
openbb_directory: str = str(Path(home_directory, ".openbb"))
|
||||
openbb_directory: str = str(Path(home_directory, ".openbb_sdk"))
|
||||
|
||||
# Logging section
|
||||
logging_app_name: str = "gst"
|
||||
|
||||
Reference in New Issue
Block a user