mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 13:05:49 +02:00
fix missed var names
This commit is contained in:
@@ -374,7 +374,9 @@ def _add_user_group__cc_pair_relationships__no_commit(
|
|||||||
|
|
||||||
|
|
||||||
def insert_user_group(db_session: Session, user_group: UserGroupCreate) -> UserGroup:
|
def insert_user_group(db_session: Session, user_group: UserGroupCreate) -> UserGroup:
|
||||||
db_user_group = UserGroup(name=user_group.name, time_updated=func.now())
|
db_user_group = UserGroup(
|
||||||
|
name=user_group.name, time_last_modified_by_user=func.now()
|
||||||
|
)
|
||||||
db_session.add(db_user_group)
|
db_session.add(db_user_group)
|
||||||
db_session.flush() # give the group an ID
|
db_session.flush() # give the group an ID
|
||||||
|
|
||||||
|
@@ -218,7 +218,7 @@ def insert_document_set(
|
|||||||
description=document_set_creation_request.description,
|
description=document_set_creation_request.description,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
is_public=document_set_creation_request.is_public,
|
is_public=document_set_creation_request.is_public,
|
||||||
time_updated=func.now(),
|
time_last_modified_by_user=func.now(),
|
||||||
)
|
)
|
||||||
db_session.add(new_document_set_row)
|
db_session.add(new_document_set_row)
|
||||||
db_session.flush() # ensure the new document set gets assigned an ID
|
db_session.flush() # ensure the new document set gets assigned an ID
|
||||||
|
Reference in New Issue
Block a user