Trying not to break things. How do I deal with import loops???

This commit is contained in:
Scott Idem
2021-06-11 17:06:00 -04:00
parent 585692bb1d
commit 06c1310455
12 changed files with 472 additions and 15 deletions

View File

@@ -7,9 +7,10 @@ from pydantic import BaseModel, EmailStr, Field, PrivateAttr, ValidationError, v
from app.db_sql import redis_lookup_id_random, sql_insert, sql_select, sql_update
from app.lib_general import log, logging
from app.methods.person_methods import create_person_obj, load_person_obj, update_person_obj
from app.methods.post_comment_methods import create_post_comment_obj, load_post_comment_obj, update_post_comment_obj
from app.methods.user_methods import create_user_obj, load_user_obj, update_user_obj
# from app.methods.person_methods import load_person_obj
# from app.methods.post_comment_methods import create_post_comment_obj, update_post_comment_obj
from app.methods.post_comment_methods import load_post_comment_obj_list
# from app.methods.user_methods import load_user_obj
from app.models.post_models import Post_Base
@@ -81,7 +82,7 @@ def load_post_obj(
if post_comment_dict_list := load_post_comment_obj_list(
post_id = post_id,
limit = limit,
model_as_dict = True,
model_as_dict = model_as_dict,
enabled = enabled,
inc_person = inc_person,
inc_user = inc_user,