Skip to content

Commit b104225

Browse files
authored
Merge pull request #93 from KoiCrystal/master
Update config.py
2 parents 73b4763 + 84dcfc9 commit b104225

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

zoomeye/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212
from zoomeye import __version__, __site__
1313

14+
seconds_of_fiveday = 60 * 60 * 24 * 5
1415

1516
# save api key file and json web token file path
1617
ZOOMEYE_CONFIG_PATH = "~/.config/zoomeye/setting"
@@ -19,7 +20,7 @@
1920
ZOOMEYE_CACHE_PATH = "~/.config/zoomeye/cache"
2021

2122
# cache expired time, five day
22-
EXPIRED_TIME = 60 * 60 * 24 * 5
23+
EXPIRED_TIME = seconds_of_fiveday
2324

2425
# print data max length
2526
STRING_MAX_LENGTH = 23

zoomeye/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def show_web_default_data(data_list, count):
110110
"site", "title", "country", "banner"), color="green")
111111
num = 0
112112
for item in data_list:
113-
num += 1
113+
num = num+1
114114
item_dict = ZoomEyeDict(item)
115115
content = ''
116116
for item_key in data.default_table_web.keys():

0 commit comments

Comments
 (0)