mirror of
https://github.com/yaroslaff/antifraud2gis.git
synced 2026-04-26 10:41:54 +00:00
changed storage path
This commit is contained in:
parent
fdf6b5281f
commit
1fd758ffaa
3 changed files with 4 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,7 +2,7 @@ __pycache__
|
|||
*.log
|
||||
*.gz
|
||||
.env
|
||||
.storage
|
||||
.af2gis-storage
|
||||
*.egg-info/
|
||||
.cache
|
||||
build/
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue