Work on CRUD routes and related SQL

This commit is contained in:
Scott Idem
2023-09-07 16:57:58 -04:00
parent 116cdd4a45
commit 2550c58d99
4 changed files with 14 additions and 8 deletions

View File

@@ -158,6 +158,9 @@ def sql_insert(
INSERT INTO `{table_name}` ({fields_string}) VALUES ({values_string});
"""
)
else:
log.error('The SQL INSERT statement could not be created. Something is missing from the sql_insert call?')
return False
log.debug(sql_insert)
log.debug(data)
@@ -302,6 +305,9 @@ def sql_update(
log.warning('Something was missing from the sql_update function call.')
return False
sql_update = text(sql)
else:
log.error('The SQL UPDATE statement could not be created. Something is missing from the sql_update call?')
return False
log.debug(sql_update)