Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

添加查询历史功能 #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

haishenming
Copy link

添加保存历史和查询历史功能
-H (num or date) -H 参数后加数字或者日期,数字表示查询多少条历史,正整数表示升序,负整数表示逆序。日期格式为“2017-09-29”, 可查询年份(“2017-”),月份(2017-09-),天(2017-09-29)

@haishenming
Copy link
Author

isdigit不能判断负数,改用try判断。。
补充:使用sqlite3本地存储历史数据

@haishenming haishenming changed the title Dev 添加查询历史功能 Sep 29, 2017
@haishenming
Copy link
Author

debug

@haishenming
Copy link
Author

咦,好像弄错了,负数是升序,正数是降序,嘿嘿嘿

@felixonmars
Copy link
Owner

我还是希望用纯文本history,比较简单方便。如果需要有频率信息,可以参考 z 的处理 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants