Changes
This commit is contained in:
parent
0cbbcb2865
commit
21e6f973ba
|
@ -82,7 +82,7 @@ class RatingImpl(object):
|
|||
rating_record.fields_toggle()
|
||||
)
|
||||
|
||||
return rating_record.fields_toggle(fields=["rid", "company_name", "report_date"]), "开始评级"
|
||||
return rating_record.fields_toggle(fields=["rid", "cid", "company_name", "report_date"]), "开始评级"
|
||||
|
||||
@staticmethod
|
||||
def financial_analysis(**kwargs):
|
||||
|
|
|
@ -10,6 +10,9 @@ class SpecObject(object):
|
|||
_dict_ = dict()
|
||||
default_types = ['str', 'int', 'float', 'dict', 'bool', 'tuple']
|
||||
|
||||
if 'fields' in kwargs:
|
||||
self.__dict__ = {key: self.__dict__[key] for key in kwargs['fields']}
|
||||
|
||||
for key in self.__dict__.keys():
|
||||
if key in self.fields_map.keys():
|
||||
|
||||
|
@ -34,9 +37,6 @@ class SpecObject(object):
|
|||
else:
|
||||
_dict_[self.fields_map[key]] = self.__dict__[key].fields_toggle()
|
||||
|
||||
if 'fields' in kwargs:
|
||||
_dict_ = {key: _dict_[key] for key in kwargs['fields']}
|
||||
|
||||
return _dict_
|
||||
|
||||
def set_instance(self, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue