mirror of https://github.com/qwqdanchun/Goby.git
This commit is contained in:
parent
55121c719f
commit
ad5db9d1c7
4
run.py
4
run.py
|
@ -198,9 +198,9 @@ if __name__ == '__main__':
|
||||||
for md5 in [md5 for md5 in data.keys() if md5 not in md5s]:
|
for md5 in [md5 for md5 in data.keys() if md5 not in md5s]:
|
||||||
del data[md5]
|
del data[md5]
|
||||||
# 写入README.md
|
# 写入README.md
|
||||||
readme_md = '## goby poc ({}个) 更新于 {}\n'.format(
|
readme_md = '## goby poc ({}个) 最近一次检查时间 {}\n'.format(
|
||||||
len(data.keys()), time.strftime("%Y-%m-%d %H:%M:%S"))
|
len(data.keys()), time.strftime("%Y-%m-%d %H:%M:%S"))
|
||||||
readme_md += '### 更新记录\n| 文件名称 | 收录时间 |\n| :----| :---- |\n'
|
readme_md += '### 收集记录\n| 文件名称 | 收录时间 |\n| :----| :---- |\n'
|
||||||
_data = sorted(data.values(), key=lambda x: x['up_time'], reverse=True)
|
_data = sorted(data.values(), key=lambda x: x['up_time'], reverse=True)
|
||||||
for item in _data:
|
for item in _data:
|
||||||
readme_md += '| [{}]({}) | {} |\n'.format(item['name'],
|
readme_md += '| [{}]({}) | {} |\n'.format(item['name'],
|
||||||
|
|
Loading…
Reference in New Issue