Score
0
Watch 211 Star 550 Fork 235

GVPfasiondog / hikyuuPythonMIT

Query和QueryByDate合并包装

Closed
archya  Opened this issue

在Hikyuu学习过程中经常出现因为弄混Query和QueryByDate导致报错的情况
如果对Hikyuu或python不熟悉
排查该错误还是需要花费一点时间的
把Query和QueryByDate合并起来怎么样?

谨供参考

def Q(start=0,end=None,kType = Query.DAY,recoverType = Query.NO_RECOVER):
    if isinstance(start,int):
        return Query(start,end,kType,recoverType)
    elif isinstance(start,Datetime):
        return QueryByDate(start,end,kType,recoverType)
    else:
        raise TypeError('Incorrect parameter type error')
3859_fasiondog 1442498_archya total 2 participants

Comments (2)

3859_fasiondog
fasiondog 2019-12-01 01:15 owner

应该不用这样改,我再看看,很久以前其实是一个Query就可以,后来不行了,当时没深究。

1442498_archya
archya 2019-12-04 17:15

改的好彻底啊
连C++的帮助都改啦
更新一下试试

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Python
1
https://gitee.com/fasiondog/hikyuu.git
git@gitee.com:fasiondog/hikyuu.git
fasiondog
hikyuu
hikyuu

Help Search