Skip to content

Commit df4c2a9

Browse files
committed
fix stock detail parse response item_values should be inited in for loop
1 parent 14cd5ab commit df4c2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tigeropen/quote/response/stock_details_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def parse_response_content(self, response_content):
113113
return
114114
detail_data = []
115115
data_json = json.loads(self.data)
116-
item_values = {}
117116
for item in data_json.get('items', {}):
117+
item_values = dict()
118118
for key, value in item.items():
119119
if value is None:
120120
continue

0 commit comments

Comments
 (0)