Skip to content

Commit

Permalink
增加跳转。
Browse files Browse the repository at this point in the history
  • Loading branch information
“yhy” committed Nov 27, 2020
1 parent 5cab2e0 commit 65a1178
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,9 @@ https://pypi.org/project/bokeh/#files

![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)


### 12,发现MariaDb 版本不兼容问题

相关数据执行只支持到10.5.4,版本可以使用,但是10.5.8 就有问题了。
限制死了版本。看来软件也不能瞎升级,都用最新的有问题。可以解决数据问题。

20 changes: 16 additions & 4 deletions web/dataTableHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,22 @@
import logging
import datetime

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

tmp_url = WEB_EASTMONEY_URL % (tmp_obj["code"], tmp_obj["code"], code_tmp)
tmp_url = WEB_EASTMONEY_URL % (tmp_obj["code"], tmp_obj["code"], code_tmp, code_tmp.lower())
tmp_obj["eastmoney_url"] = tmp_url
logging.info(tmp_idx)
logging.info(tmp_obj["eastmoney_url"])
Expand Down

0 comments on commit 65a1178

Please sign in to comment.