fixes to use the program with repr
This commit is contained in:
parent
c38274b58e
commit
221aa5d3aa
@ -1,17 +1,15 @@
|
|||||||
#!python
|
#!python
|
||||||
# pyright: basic
|
# pyright: basic
|
||||||
|
import sys
|
||||||
|
from os import makedirs, mkdir
|
||||||
|
from shutil import rmtree
|
||||||
|
|
||||||
from articles import Article, Articles
|
from articles import Article, Articles
|
||||||
from config import config
|
from config import config
|
||||||
from converter import highlight_unknown_chars
|
from converter import highlight_unknown_chars
|
||||||
from database import db
|
from database import db
|
||||||
|
|
||||||
if __name__ != "__main__":
|
if __name__ != "__main__":
|
||||||
exit()
|
|
||||||
|
|
||||||
import sys
|
|
||||||
from os import makedirs, mkdir
|
|
||||||
from shutil import rmtree
|
|
||||||
|
|
||||||
# Clean the output dir & create a new
|
# Clean the output dir & create a new
|
||||||
rmtree(config.output_dir, True)
|
rmtree(config.output_dir, True)
|
||||||
mkdir(config.output_dir)
|
mkdir(config.output_dir)
|
||||||
@ -36,6 +34,7 @@ RESET: str = "\033[0m"
|
|||||||
# Articles that contains unknown chars
|
# Articles that contains unknown chars
|
||||||
unknown_chars_articles: list[Article] = []
|
unknown_chars_articles: list[Article] = []
|
||||||
|
|
||||||
|
if __name__ != "__main__":
|
||||||
# Loop among first maxexport articles & export them
|
# Loop among first maxexport articles & export them
|
||||||
for counter, article in Articles(maxexport):
|
for counter, article in Articles(maxexport):
|
||||||
if (counter["exported"] - 1) % 100 == 0:
|
if (counter["exported"] - 1) % 100 == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user