Trying not to break things. How do I deal with import loops???
This commit is contained in:
@@ -11,7 +11,8 @@ from app.routers.api_crud import delete_obj_template, get_obj_template, get_obj_
|
||||
|
||||
from app.methods.event_person_methods import create_event_person_obj, load_event_person_obj, update_event_person_obj
|
||||
from app.methods.person_methods import create_person_obj, load_person_obj
|
||||
from app.methods.user_methods import create_user_obj, load_user_obj
|
||||
from app.methods.user_methods import create_user_obj, load_user_obj, update_user_obj
|
||||
# from app.methods.user_load_methods import load_user_obj
|
||||
|
||||
from app.models.event_person_models import Event_Person_New_Base, Event_Person_Base
|
||||
from app.models.person_models import Person_Base
|
||||
|
||||
@@ -567,10 +567,10 @@ async def get_user_obj_new(
|
||||
limit: int = 500, # For now this covers any included objects or object lists
|
||||
enabled: str = 'enabled', # For now this covers any included objects or object lists
|
||||
inc_address: bool = False, # Priority l1
|
||||
inc_archive_list: bool = False, # Priority l3
|
||||
# inc_archive_list: bool = False, # Priority l3
|
||||
inc_contact: bool = False, # Priority l1
|
||||
inc_event_list: bool = False, # Priority l1
|
||||
inc_hosted_file_list: bool = False, # Priority l3
|
||||
# inc_hosted_file_list: bool = False, # Priority l3
|
||||
inc_journal_list: bool = False, # Priority l2
|
||||
# inc_journal_entry_list: bool = False, # Priority l3
|
||||
inc_membership: bool = False, # Priority l2
|
||||
@@ -582,7 +582,7 @@ async def get_user_obj_new(
|
||||
inc_person: bool = False, # Priority l1
|
||||
# inc_person_list: bool = False,
|
||||
inc_post_list: bool = False, # Priority l2
|
||||
inc_post_comment_list: bool = False, # Priority l3
|
||||
# inc_post_comment_list: bool = False, # Priority l3
|
||||
inc_user_role_list: bool = False, # Priority l1
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
@@ -616,7 +616,7 @@ async def get_user_obj_new(
|
||||
inc_person = inc_person,
|
||||
# inc_person_list = inc_person_list,
|
||||
inc_post_list = inc_post_list,
|
||||
inc_post_comment_list = inc_post_comment_list,
|
||||
# inc_post_comment_list = inc_post_comment_list,
|
||||
inc_user_role_list = inc_user_role_list,
|
||||
):
|
||||
if isinstance(user_dict, dict):
|
||||
|
||||
Reference in New Issue
Block a user