feat: executors and grouping by article in deal document

This commit is contained in:
2024-10-02 02:40:54 +04:00
parent 766ded04a5
commit ca6e7d5b37
12 changed files with 308 additions and 169 deletions

View File

@@ -10,6 +10,7 @@ from utils.code128 import encode128
ENV = Environment(loader=FileSystemLoader(Path("templates") / Path("documents")))
ENV.globals['now'] = datetime.now
ENV.globals['encode128'] = encode128
ENV.globals['format_number'] = lambda x: '{:,}'.format(x).replace(',', ' ')
APP_PATH = os.path.dirname(sys.executable) if getattr(sys, 'frozen', False) else os.path.dirname(__file__)