xync-db 0.24.3.dev5__tar.gz → 0.25.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/.gitignore +3 -1
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/PKG-INFO +1 -1
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/config.py +3 -3
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/enums.py +1 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/README.md +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/pyproject.toml +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/exceptions.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/graph.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/i18n.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/login_store.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/logo.png +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/CLAUDE.md +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/0001_initial.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/0002_triggers.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/0003_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/a_actor_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/a_bin_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/a_city_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/a_country_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/a_tg_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/b_htx_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/c_net_seed.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/cities.json +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/countries.json +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/ranges.csv +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/migrations/models/seed/xync_files.sql +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/models/CLAUDE.md +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/models/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/py.typed +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/shared.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/__init__.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/actor.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/ad.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/common.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/cred.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/order.py +0 -0
- {xync_db-0.24.3.dev5 → xync_db-0.25.0}/src/xync_db/typs/db/pm.py +0 -0
|
@@ -6,9 +6,9 @@ from dotenv import load_dotenv
|
|
|
6
6
|
|
|
7
7
|
load_dotenv()
|
|
8
8
|
|
|
9
|
-
PG_DSN =
|
|
10
|
-
"
|
|
11
|
-
f"
|
|
9
|
+
PG_DSN = (
|
|
10
|
+
f"postgres://{env('POSTGRES_USER', 'xync')}:{env('POSTGRES_PASSWORD', '')}"
|
|
11
|
+
f"@{env('POSTGRES_HOST', '0.0.0.0')}:{env('POSTGRES_PORT', 5432)}/{env('POSTGRES_DB', 'xync')}"
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
TORTOISE_ORM: dict = {
|
|
@@ -243,6 +243,7 @@ class TransType(IntEnum): # способ расчёта (`CondParsed.trans_type
|
|
|
243
243
|
mobile = 4 # пополнение баланса мобильного телефона по номеру (вместо денежного перевода)
|
|
244
244
|
topup = 5 # не перевод, а пополнение баланса чего угодно, кроме мобильного (то — mobile)
|
|
245
245
|
pay = 6 # не перевод, а оплата счетов: рекламы, коммунальных, товаров, чего угодно
|
|
246
|
+
cash = 7 # наличные при встрече или в кэш-обменнике: только у него есть города (`CondParsed.cash_cities`)
|
|
246
247
|
|
|
247
248
|
|
|
248
249
|
class PartyType(IntEnum): # чей счёт в платеже: и from_party, и to_party у CondParsed
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|