Skip to content

Commit

Permalink
Merge pull request #83 from licenseware/hist-quota
Browse files Browse the repository at this point in the history
fix: check on event_data on history file content validation
  • Loading branch information
alincmt authored Mar 16, 2022
2 parents 828f87b + 71cc049 commit 5c9cf45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion licenseware/history/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import datetime
from licenseware import mongodata
from licenseware.common.constants import envs, states
# from licenseware.common.serializers import WildSchema
from .history_schemas import HistorySchema
from licenseware.utils.logger import log as logg


def save_filename_validation(metadata, response):
Expand Down Expand Up @@ -48,6 +48,10 @@ def copy_files_uploaded_on_event_folder(data):

def save_file_content_validation(metadata, response):

if "event_data" not in response:
logg.info("Parameter `event_data` not found on response from `upload_files`")
return

file_content_validation = []
for cv in response["event_data"]:
file_content_validation.extend(cv["validation_response"]['validation'])
Expand Down
Binary file modified wheel_sdk/licenseware-2.0.2-py3-none-any.whl
Binary file not shown.
Binary file modified wheel_sdk/licenseware-2.0.2.tar.gz
Binary file not shown.

0 comments on commit 5c9cf45

Please sign in to comment.