mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-21 17:20:07 +02:00
nit
This commit is contained in:
parent
87a53d6d80
commit
b1e9e03aa4
@ -36,8 +36,6 @@ basic_router = APIRouter(prefix="/settings")
|
|||||||
def put_settings(
|
def put_settings(
|
||||||
settings: Settings, _: User | None = Depends(current_admin_user)
|
settings: Settings, _: User | None = Depends(current_admin_user)
|
||||||
) -> None:
|
) -> None:
|
||||||
print("PUTTING SETTINGS")
|
|
||||||
print(settings)
|
|
||||||
store_settings(settings)
|
store_settings(settings)
|
||||||
|
|
||||||
|
|
||||||
@ -49,10 +47,7 @@ def fetch_settings(
|
|||||||
) -> UserSettings:
|
) -> UserSettings:
|
||||||
"""Settings and notifications are stuffed into this single endpoint to reduce number of
|
"""Settings and notifications are stuffed into this single endpoint to reduce number of
|
||||||
Postgres calls"""
|
Postgres calls"""
|
||||||
print("FETCHING SETTINGS")
|
|
||||||
general_settings = load_settings()
|
general_settings = load_settings()
|
||||||
print("LOADED SETTINGS")
|
|
||||||
print(general_settings)
|
|
||||||
settings_notifications = get_settings_notifications(user, db_session)
|
settings_notifications = get_settings_notifications(user, db_session)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user