Skip to content

Commit

Permalink
Remove logging and have added collex back to scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveScorfield committed Feb 22, 2024
1 parent 1e34545 commit 1849831
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lint-check:
unit-test:
pipenv run pytest

test:
test: lint-check
pipenv run behave --format progress
pipenv run pytest

Expand Down
2 changes: 0 additions & 2 deletions secure_message/resources/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def post(self):
logger.info('Request must set accept content type "application/json" in header.')
post_data = request.get_json(force=True)

logger.info("Payload: " + str(post_data))
collection_exercise_id = post_data["collection_exercise_id"] if "collection_exercise_id" in post_data else None
logger.info("Collection exercise: " + str(collection_exercise_id))
category = post_data["category"] if "category" in post_data else None
survey_id = post_data["survey_id"] if "survey_id" in post_data else None
post_data["from_internal"] = g.user.is_internal
Expand Down
1 change: 1 addition & 0 deletions secure_message/validation/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class MessageSchema(Schema):
exercise_id = fields.Str(allow_none=True)
from_internal = fields.Boolean(allow_none=True)
category = fields.Str(required=False)
collection_exercise_id = fields.Str(required=False)

@pre_load
def check_sent_and_read_date(self, data, **kwargs):
Expand Down

0 comments on commit 1849831

Please sign in to comment.