Skip to content

Commit ebfacff

Browse files
authored
Merge pull request #92 from ybx0505/master
change some varibles
2 parents 73782d2 + c88b6b5 commit ebfacff

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

zoomeye/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ def main():
219219
parser_domain.set_defaults(func=core.associated_domain_query)
220220

221221
args = parser.parse_args()
222+
ver=args.version()
222223

223-
if args.version:
224+
if ver:
224225
get_version()
225226
exit(0)
226227

zoomeye/data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ def regexp(keys, field_table, data_list):
162162
return result
163163

164164

165-
def filter_search_data(keys, field_table, data):
165+
def filter_search_data(datakeys, field_table, data):
166166
"""
167167
get the data of the corresponding field
168-
:param keys: list, user input field
168+
:param datakeys: list, user input field
169169
:param field_table: dict, fileds
170170
:param data: list, zoomeye api data
171171
:return: list, ex: [[1,2,3...],[1,2,3...],[1,2,3...]...]
@@ -174,7 +174,7 @@ def filter_search_data(keys, field_table, data):
174174
for d in data:
175175
item = []
176176
zmdict = ZoomEyeDict(d)
177-
for key in keys:
177+
for key in datakeys:
178178
if field_table.get(key.strip()) is None:
179179
support_fields = ','.join(list(field_table.keys()))
180180
show.printf("filter command has unsupport fields [{}], support fields has [{}]"

zoomeye/show.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def print_info_filter(filters, raw_data, condition=None):
427427
printf(content)
428428

429429

430-
def show_domain_info(info_list, total, page):
430+
def show_domain_info(information_list, total, page):
431431
"""
432432
show query domain info
433433
Args:
@@ -437,10 +437,10 @@ def show_domain_info(info_list, total, page):
437437
None
438438
"""
439439

440-
if len(info_list) == 0:
440+
if len(information_list) == 0:
441441
return
442442
printf("{:<55}{:<15}{:<25}".format("name", "timestamp", "ip"), color="green")
443-
for d in info_list:
443+
for d in information_list:
444444
name, timestamp, ip = d.values()
445445
printf("{:<55}{:<15}{:<25}".format(name, timestamp, json.dumps(ip)))
446446
print()

0 commit comments

Comments
 (0)