This commit is contained in:
Scott Idem
2021-12-17 16:17:17 -05:00
parent 398897efe1
commit 615d5dab17
6 changed files with 105 additions and 76 deletions

View File

@@ -40,6 +40,7 @@ def create_post_obj(post_obj_new:Post_Base):
# ### BEGIN ### API Post Methods ### load_post_obj() ###
# Updated 2021-12-16
@logger_reset
def load_post_obj(
post_id: int|str,
@@ -59,11 +60,9 @@ def load_post_obj(
else: return False
if post_rec := sql_select(table_name='v_post', record_id=post_id):
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(post_rec)
else: return False
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(post_rec)
try: