Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
4e3c9951
Commit
4e3c9951
authored
Dec 09, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix input parsing
parent
def16fbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
changelog.md
docs/changelog.md
+3
-0
parse_input.star
src/package_io/parse_input.star
+3
-5
No files found.
docs/changelog.md
View file @
4e3c9951
# TBD
### Fixes
-
Fix bug with input parsing of participants
### Changes
-
Updated
`run(input_args)`
to
`run(args)`
-
Removed
`print(output)`
at the end as it is now printed by the framework
...
...
src/package_io/parse_input.star
View file @
4e3c9951
...
...
@@ -35,11 +35,9 @@ def parse_input(input_args):
participants = []
for participant in input_args.participants:
new_participant = default_participant()
for sub_attr in dir(participant):
sub_value = getattr(participant, sub_attr)
# if its inserted we use the value inserted
if hasattr(participant, sub_attr):
new_participant[sub_attr] = sub_value
for sub_attr, sub_value in participant.items():
# if the value is set in input we set it in participant
new_participant[sub_attr] = sub_value
participants.append(new_participant)
result["participants"] = participants
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment