Skip to content

Commit

Permalink
Modified the Options object serializer method.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanmaster53 committed Oct 22, 2019
1 parent cbad4c7 commit 59b604c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions recon/core/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ def init_option(self, name, value=None, required=False, description=''):
self.description[name] = description

def serialize(self):
data = {}
options = []
for key in self:
data[key] = self[key]
return data
option = {}
option['name'] = key
option['value'] = self[key]
option['required'] = self.required[key]
option['description'] = self.description[key]
options.append(option)
return options

#=================================================
# FRAMEWORK CLASS
Expand Down

0 comments on commit 59b604c

Please sign in to comment.