Improved submit mode, several sites added

This commit is contained in:
Soxoj
2021-03-21 13:59:59 +03:00
parent b586a4cd06
commit 2bb01f7019
6 changed files with 2746 additions and 2864 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ SUPPORTED_TAGS = [
'discussion', 'sharing', 'writing', 'wiki', 'business', 'shopping', 'sport',
'books', 'news', 'documents', 'travel', 'maps', 'hobby', 'apps', 'classified',
'career', 'geosocial', 'streaming', 'education', 'networking', 'torrent',
'science', 'medicine',
]
@@ -154,7 +155,8 @@ class MaigretSite:
# remove dict keys
if isinstance(engine_data[k], dict) and is_exists:
for f in engine_data[k].keys():
del self_copy.__dict__[field][f]
if f in self_copy.__dict__[field]:
del self_copy.__dict__[field][f]
continue
# remove list items
if isinstance(engine_data[k], list) and is_exists: