changed storage path

This commit is contained in:
Yaroslav Polyakov 2025-04-02 19:42:50 +07:00
parent fdf6b5281f
commit 1fd758ffaa
3 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View file

@ -2,7 +2,7 @@ __pycache__
*.log
*.gz
.env
.storage
.af2gis-storage
*.egg-info/
.cache
build/

View file

@ -11,6 +11,7 @@ from ..logger import logger
from ..company import Company, CompanyList
from ..fraud import detect
from ..db import db
from ..settings import settings
def add_summary_parser(subparsers):
@ -25,7 +26,7 @@ def printsummary(cl: CompanyList):
global last_summary
userpath = Path(".storage/users")
userpath = settings.user_storage
total = len(list(cl.companies()))
nerr = 0
ncalc = 0

View file

@ -5,7 +5,7 @@ from dotenv import load_dotenv
class Settings():
def __init__(self):
load_dotenv()
self.storage = Path(".storage")
self.storage = Path(".af2gis-storage")
self.user_storage = self.storage / "users"
self.private_user_storage = self.storage / "users" / "_private.json"