mirror of
https://github.com/minoplhy/filters-maker
synced 2023-12-14 08:32:52 +01:00
Remove excluder input file after proceed
This commit is contained in:
parent
2811f73c08
commit
46f614c500
BIN
__pycache__/crawler.cpython-37.pyc
Normal file
BIN
__pycache__/crawler.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/crawler.cpython-39.pyc
Normal file
BIN
__pycache__/crawler.cpython-39.pyc
Normal file
Binary file not shown.
BIN
__pycache__/excluder.cpython-37.pyc
Normal file
BIN
__pycache__/excluder.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/excluder.cpython-39.pyc
Normal file
BIN
__pycache__/excluder.cpython-39.pyc
Normal file
Binary file not shown.
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import crawler
|
||||
|
||||
def add(incoming,input):
|
||||
|
@ -26,3 +27,4 @@ def add_file(incoming,excluded_in):
|
|||
with open(incoming, 'w') as f:
|
||||
f.writelines(set(lines))
|
||||
crawler.sort(incoming)
|
||||
os.remove(excluded_in)
|
Loading…
Reference in a new issue