Created async requests executors, some sites fixes

This commit is contained in:
Soxoj
2021-03-20 20:57:07 +03:00
parent faa03b62e5
commit 314eb25d1f
5 changed files with 238 additions and 58 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ async def submit_dialog(db, url_exists, cookie_file):
print(f'Sorry, we couldn\'t find params to detect account presence/absence in {site.name}.')
print('Try to run this mode again and increase features count or choose others.')
else:
if input(f'Site {site.name} successfully checked. Do you want to save it in the Maigret DB? [yY] ') in 'yY':
if input(f'Site {site.name} successfully checked. Do you want to save it in the Maigret DB? [Yn] ').lower() in 'y':
db.update_site(site)
return True