Skip to content

Commit

Permalink
Merge pull request #129 from soxoj/0.2.2
Browse files Browse the repository at this point in the history
Updated sites, improved submit dialog, bump to 0.2.2
  • Loading branch information
soxoj authored May 7, 2021
2 parents d59867b + b6a207d commit 158f739
Show file tree
Hide file tree
Showing 10 changed files with 2,915 additions and 2,778 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased]

## [0.2.2] - 2021-05-07
* improved ids extractors
* updated sites and engines
* updates CLI options

## [0.2.1] - 2021-05-02
* fixed json reports generation bug, added tests

Expand Down
9 changes: 6 additions & 3 deletions maigret/maigret.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from .types import QueryResultWrapper
from .utils import get_dict_ascii_tree

__version__ = '0.2.1'
__version__ = '0.2.2'


def notify_about_errors(search_results: QueryResultWrapper, query_notify):
Expand Down Expand Up @@ -511,12 +511,15 @@ async def main():
db, site_data, logger, max_connections=args.connections
)
if is_need_update:
if input('Do you want to save changes permanently? [Yn]\n').lower() == 'y':
if input('Do you want to save changes permanently? [Yn]\n').lower() in (
'y',
'',
):
db.save_to_file(args.db_file)
print('Database was successfully updated.')
else:
print('Updates will be applied only for current search session.')
print(db.get_scan_stats(site_data))
print('Scan sessions flags stats: ' + str(db.get_scan_stats(site_data)))

# Database statistics
if args.stats:
Expand Down
Loading

0 comments on commit 158f739

Please sign in to comment.