Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -78,8 +78,8 @@ async def create_user(user: User):
|
|
78 |
async def get_followers(channel_owner: str, limit: typing.Annotated[int, fastapi.Path(title = "The number of followers to retrieve")]):
|
79 |
return {"channel_owner": channel_owner, "limit": limit}
|
80 |
|
81 |
-
encryption_key = os.
|
82 |
-
encryption_algorithm = os.
|
83 |
if encryption_key is None:
|
84 |
raise ValueError("No ENCRYPTION_KEY set for the application")
|
85 |
if encryption_algorithm is None:
|
|
|
78 |
async def get_followers(channel_owner: str, limit: typing.Annotated[int, fastapi.Path(title = "The number of followers to retrieve")]):
|
79 |
return {"channel_owner": channel_owner, "limit": limit}
|
80 |
|
81 |
+
encryption_key = os.environ.get("ENCRYPTION_KEY")
|
82 |
+
encryption_algorithm = os.environ.get("ENCRYPTION_ALGORITHM")
|
83 |
if encryption_key is None:
|
84 |
raise ValueError("No ENCRYPTION_KEY set for the application")
|
85 |
if encryption_algorithm is None:
|