Clean up and working on user related models, methods, and routes.

This commit is contained in:
Scott Idem
2021-06-11 15:04:42 -04:00
parent 29dfcc5440
commit d1f3a4c27e
3 changed files with 4 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ def load_post_comment_obj(
if post_comment_id := redis_lookup_id_random(record_id_random=post_comment_id, table_name='post_comment'): pass
else: return False
if post_comment_rec := sql_select(table_name='v_post_comment', record_id=post_comment_id):
if post_comment_rec := sql_select(table_name='v_post_comment_detail', record_id=post_comment_id):
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(post_comment_rec)
else:

View File

@@ -53,7 +53,7 @@ def load_post_obj(
if post_id := redis_lookup_id_random(record_id_random=post_id, table_name='post'): pass
else: return False
if post_rec := sql_select(table_name='v_post', record_id=post_id):
if post_rec := sql_select(table_name='v_post_detail', record_id=post_id):
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(post_rec)
else: return False

View File

@@ -598,8 +598,8 @@ async def get_user_obj_new(
inc_event_track_list: bool = False,
inc_hosted_file_list: bool = False,
inc_journal_list: bool = False,
# inc_membership: bool = False,
inc_membership_list: bool = False,
inc_membership: bool = False,
# inc_membership_list: bool = False,
# inc_order: bool = False,
inc_order_list: bool = False,
# inc_order_cart: bool = False,
@@ -612,10 +612,6 @@ async def get_user_obj_new(
inc_post_list: bool = False, # Priority l1
# inc_post_comment: bool = False,
inc_post_comment_list: bool = False,
# inc_product: bool = False,
# inc_product_list: bool = False,
# inc_site: bool = False,
# inc_site_list: bool = False,
inc_user: bool = False,
inc_user_list: bool = False,
x_account_id: str = Header(...),