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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.88
3
+ Version: 0.24.90
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='yeref',
5
- version='0.24.88',
5
+ version='0.24.90',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -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(1, 10))
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
- COMM = MRR * 0.3
16655
- EXCH = MRR * 0.01
16656
- NP = OP - COMM - EXCH
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.88
3
+ Version: 0.24.90
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
File without changes
File without changes
File without changes
File without changes
File without changes