Skip to content

Commit

Permalink
Merge pull request #37 from knownsec/dev
Browse files Browse the repository at this point in the history
fix(): num is 'all' panic
  • Loading branch information
wh0am1i authored Apr 9, 2021
2 parents 34d20e7 + ddbf8d8 commit 29f0091
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zoomeye/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

__name__ = 'zoomeye'
__package__ = 'zoomeye'
__version__ = ' 2.0.4.6'
__version__ = ' 2.0.4.6.1'
__site__ = "https://www.zoomeye.org/doc"
2 changes: 1 addition & 1 deletion zoomeye/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main():
parser_search.add_argument(
"-num",
default=20,
help="The number of search results that should be returned",
help="The number of search results that should be returned, support 'all'",
type=str,
metavar='value'
)
Expand Down
2 changes: 1 addition & 1 deletion zoomeye/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def handle_page(self):
)
self.num = self.zoomeye.total
cache = Cache(self.dork, page=1, resource=self.resource)
cache.save(self.zoomeye.raw_data)
cache.save(json.dumps(self.zoomeye.raw_data))
if self.num % 20 == 0:
return int(self.num / 20)
return int(self.num / 20) + 1
Expand Down

0 comments on commit 29f0091

Please sign in to comment.