Work on CRUD routes and related SQL
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user