implementing more input-validation-functions for shipcalls and ships. Beginning to refactor some of the validation functions into more readable Python classes.
This commit is contained in:
parent
b38cec3a37
commit
e465ff0c59
@ -41,9 +41,6 @@ def PostShipcalls():
|
||||
try:
|
||||
content = request.get_json(force=True)
|
||||
loadedModel = model.ShipcallSchema().load(data=content, many=False, partial=True)
|
||||
logging.log(20, loadedModel)
|
||||
logging.log(20, "dev. above: loaded model, below: content")
|
||||
logging.log(20, content)
|
||||
|
||||
# read the user data from the JWT token (set when login is performed)
|
||||
user_data = check_jwt()
|
||||
|
||||
Reference in New Issue
Block a user