mirror of
https://github.com/searxng/searxng.git
synced 2025-09-03 16:58:34 +02:00
Info: code refactoring & bug fixes
This commit is contained in:
parent
bb19c7eccf
commit
dbe3eaabc9
5 changed files with 27 additions and 35 deletions
|
@ -24,7 +24,7 @@ def main():
|
|||
infopageset_ctx = _offline_infosetset_ctx()
|
||||
|
||||
with infopageset_ctx as infopageset:
|
||||
for _, page in infopageset.all_pages('en'):
|
||||
for _, _, page in infopageset.iter_pages('en'):
|
||||
fname = os.path.join(_doc_user, os.path.basename(page.fname))
|
||||
with open(fname, 'w') as f:
|
||||
f.write(page.content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue