Skip to content

Commit 65a1178

Browse files
author
“yhy”
committed
增加跳转。
1 parent 5cab2e0 commit 65a1178

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,9 @@ https://pypi.org/project/bokeh/#files
258258

259259
![image](https://img-blog.csdnimg.cn/20200808102407611.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ZyZWV3ZWJzeXM=,size_16,color_FFFFFF,t_70)
260260

261+
262+
### 12,发现MariaDb 版本不兼容问题
263+
264+
相关数据执行只支持到10.5.4,版本可以使用,但是10.5.8 就有问题了。
265+
限制死了版本。看来软件也不能瞎升级,都用最新的有问题。可以解决数据问题。
266+

web/dataTableHandler.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@
88
import logging
99
import datetime
1010

11+
# info 蓝色 云财经
12+
# success 绿色
13+
# danger 红色 东方财富
14+
# warning 黄色
1115
WEB_EASTMONEY_URL = u"""
12-
<a class='btn btn-info btn-xs' href='http://quote.eastmoney.com/%s.html' target='_blank'>查看</a>
13-
<a class='btn btn-danger btn-xs' href='/data/indicators?code=%s' target='_blank'>指标</a>
14-
<a class='btn btn-warning btn-xs' href='https://emweb.eastmoney.com/PC_HSF10/ShareholderResearch/Index?type=soft&code=%s' target='_blank'>研报</a>
16+
<a class='btn btn-danger btn-xs tooltip-danger' data-rel="tooltip" data-placement="right" data-original-title="东方财富,股票详细地址"
17+
href='http://quote.eastmoney.com/%s.html' target='_blank'>东财</a>
18+
19+
<a class='btn btn-success btn-xs tooltip-success' data-rel="tooltip" data-placement="right" data-original-title="本地MACD,KDJ等指标"
20+
href='/data/indicators?code=%s' target='_blank'>指标</a>
21+
22+
<a class='btn btn-warning btn-xs tooltip-warning' data-rel="tooltip" data-placement="right" data-original-title="东方财富,研报地址"
23+
href='https://emweb.eastmoney.com/PC_HSF10/ShareholderResearch/Index?type=soft&code=%s' target='_blank'>东研</a>
24+
25+
<a class='btn btn-info btn-xs tooltip-info' data-rel="tooltip" data-placement="right" data-original-title="云财经,分析地址"
26+
href='https://www.yuncaijing.com/quote/%s.html' target='_blank'>云财经</a>
1527
"""
1628
# 和在dic中的字符串一致。字符串前面都不特别声明是u""
1729
eastmoney_name = "查看股票"
@@ -154,7 +166,7 @@ def get(self):
154166
else:
155167
code_tmp = "SZ" + code_tmp
156168

157-
tmp_url = WEB_EASTMONEY_URL % (tmp_obj["code"], tmp_obj["code"], code_tmp)
169+
tmp_url = WEB_EASTMONEY_URL % (tmp_obj["code"], tmp_obj["code"], code_tmp, code_tmp.lower())
158170
tmp_obj["eastmoney_url"] = tmp_url
159171
logging.info(tmp_idx)
160172
logging.info(tmp_obj["eastmoney_url"])

0 commit comments

Comments
 (0)