Clean up
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user