Commit 3e76bedb authored by Victor Colombo's avatar Victor Colombo Committed by GitHub

Merge branch 'master' into vcolombo/refactor-define-fact-wait-request

parents 031cb3be d2a813e2
# TBD # TBD
### Fixes
- Fix bug with input parsing of participants
### Changes ### Changes
- Updated `run(input_args)` to `run(args)` - Updated `run(input_args)` to `run(args)`
- Refactor code to use `wait` and `request` commands - Refactor code to use `wait` and `request` commands
......
...@@ -35,11 +35,9 @@ def parse_input(input_args): ...@@ -35,11 +35,9 @@ def parse_input(input_args):
participants = [] participants = []
for participant in input_args.participants: for participant in input_args.participants:
new_participant = default_participant() new_participant = default_participant()
for sub_attr in dir(participant): for sub_attr, sub_value in participant.items():
sub_value = getattr(participant, sub_attr) # if the value is set in input we set it in participant
# if its inserted we use the value inserted new_participant[sub_attr] = sub_value
if hasattr(participant, sub_attr):
new_participant[sub_attr] = sub_value
participants.append(new_participant) participants.append(new_participant)
result["participants"] = participants result["participants"] = participants
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment