yeref 0.24.88__tar.gz → 0.24.90__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.
- {yeref-0.24.88 → yeref-0.24.90}/PKG-INFO +1 -1
- {yeref-0.24.88 → yeref-0.24.90}/setup.py +1 -1
- {yeref-0.24.88 → yeref-0.24.90}/yeref/yeref.py +8 -9
- {yeref-0.24.88 → yeref-0.24.90}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.88 → yeref-0.24.90}/pyproject.toml +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/setup.cfg +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref/__init__.py +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref/l_.py +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref/tonweb.js +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.88 → yeref-0.24.90}/yeref.egg-info/top_level.txt +0 -0
@@ -16584,12 +16584,11 @@ async def return_profit_and_loss_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P)
|
|
16584
16584
|
pay_day = random.randint(1, 28)
|
16585
16585
|
pay_date = f"{pay_month}-{pay_day:02}"
|
16586
16586
|
dt_pay = datetime.strptime(pay_date, "%Y-%m-%d")
|
16587
|
-
# if dt_pay >= entry_dt_obj:
|
16588
16587
|
payments = [{
|
16589
16588
|
"TYPE": random.choice(["don", "sub", "pst"]),
|
16590
16589
|
"DT_START": f"{dt_pay.strftime('%d-%m-%Y')}_14-00-00",
|
16591
16590
|
"DT_END": "0",
|
16592
|
-
"AMOUNT": str(random.randint(
|
16591
|
+
"AMOUNT": str(random.randint(10, 1000))
|
16593
16592
|
}]
|
16594
16593
|
user_dau_dates.add(pay_date)
|
16595
16594
|
|
@@ -16642,18 +16641,18 @@ async def return_profit_and_loss_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P)
|
|
16642
16641
|
results = []
|
16643
16642
|
|
16644
16643
|
for mo in months_sorted:
|
16645
|
-
# Преобразуем "2025-06" → "JUN"
|
16646
|
-
dt_mo = datetime.strptime(mo, "%Y-%m")
|
16647
|
-
mon_str = dt_mo.strftime("%b").upper()
|
16648
|
-
|
16649
16644
|
MRR = metrics[mo]["sum_amount"]
|
16650
16645
|
COGS = 0.0
|
16651
16646
|
GP = MRR - COGS
|
16652
16647
|
OPEX = 4.5
|
16653
16648
|
OP = GP - OPEX
|
16654
|
-
|
16655
|
-
|
16656
|
-
|
16649
|
+
|
16650
|
+
# из OP сначала вычитаем 30%, затем из результата вычитаем 1%
|
16651
|
+
after_comm = OP * 0.70 # остаётся после 30% комиссии
|
16652
|
+
after_fiat = after_comm * 0.99 # остаётся после ещё 1% на обмен
|
16653
|
+
COMM = OP - after_comm # сама комиссия (30% от OP)
|
16654
|
+
EXCH = after_comm - after_fiat # сама часть обмена (1% от остатка после комиссии)
|
16655
|
+
NP = after_fiat # чистая прибыль
|
16657
16656
|
|
16658
16657
|
results.append([
|
16659
16658
|
mo,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|