格式化集思录返回的json数据,以字典形式保存
(fundajson)
| 82 | |
| 83 | @staticmethod |
| 84 | def formatfundajson(fundajson): |
| 85 | """格式化集思录返回的json数据,以字典形式保存""" |
| 86 | d = {} |
| 87 | for row in fundajson['rows']: |
| 88 | funda_id = row['id'] |
| 89 | cell = row['cell'] |
| 90 | d[funda_id] = cell |
| 91 | return d |
| 92 | |
| 93 | @staticmethod |
| 94 | def formatfundbjson(fundbjson): |