yeref 0.24.49__py3-none-any.whl → 0.24.51__py3-none-any.whl
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/yeref.py
CHANGED
@@ -16140,7 +16140,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16140
16140
|
|
16141
16141
|
months = ["2025-06", "2025-07", "2025-08", "2025-09"]
|
16142
16142
|
data_users = []
|
16143
|
-
for _ in range(
|
16143
|
+
for _ in range(5):
|
16144
16144
|
# дата входа
|
16145
16145
|
entry_month = random.choice(months)
|
16146
16146
|
entry_day = random.randint(1, 28)
|
@@ -16174,19 +16174,19 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16174
16174
|
user_dau_dates.add(tx_date)
|
16175
16175
|
|
16176
16176
|
# платеж
|
16177
|
-
if user_mau
|
16177
|
+
if user_mau:
|
16178
16178
|
pay_month = random.choice(user_mau)
|
16179
16179
|
pay_day = random.randint(1, 28)
|
16180
16180
|
pay_date = f"{pay_month}-{pay_day:02}"
|
16181
16181
|
dt_pay = datetime.strptime(pay_date, "%Y-%m-%d")
|
16182
|
-
if dt_pay >= entry_dt_obj:
|
16183
|
-
|
16184
|
-
|
16185
|
-
|
16186
|
-
|
16187
|
-
|
16188
|
-
|
16189
|
-
|
16182
|
+
# if dt_pay >= entry_dt_obj:
|
16183
|
+
payments = [{
|
16184
|
+
"TYPE": random.choice(["don", "sub", "pst"]),
|
16185
|
+
"DT_START": f"{dt_pay.strftime('%d-%m-%Y')}_14-00-00",
|
16186
|
+
"DT_END": "0",
|
16187
|
+
"AMOUNT": str(random.randint(1, 10))
|
16188
|
+
}]
|
16189
|
+
user_dau_dates.add(pay_date)
|
16190
16190
|
|
16191
16191
|
# вход в приложение
|
16192
16192
|
user_dau_dates.add(entry_date)
|
@@ -16215,7 +16215,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16215
16215
|
USER_DT = USER_VARS.get("USER_DT", "")
|
16216
16216
|
USER_PAYMENTS = USER_LSTS.get("USER_PAYMENTS", [])
|
16217
16217
|
USER_STATUSES = USER_LSTS.get("USER_STATUSES", [])
|
16218
|
-
# месяц регистрации
|
16219
16218
|
|
16220
16219
|
if USER_DT:
|
16221
16220
|
dt_obj = datetime.strptime(USER_DT, "%d-%m-%Y_%H-%M-%S")
|
@@ -16252,6 +16251,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16252
16251
|
N = data["N"]
|
16253
16252
|
MRR = data["sum_amount"]
|
16254
16253
|
|
16254
|
+
|
16255
16255
|
def fmt(x):
|
16256
16256
|
return (f"{x:.2f}".rstrip("0").rstrip(".")) if x is not None else ""
|
16257
16257
|
mrr_fmt = fmt(MRR)
|
@@ -16269,13 +16269,14 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16269
16269
|
else:
|
16270
16270
|
LTV2 = None
|
16271
16271
|
|
16272
|
+
LTV1 = LTV2
|
16272
16273
|
# CMGR: от первого месяца до текущего
|
16273
16274
|
if idx == 0 or first_mrr is None or first_mrr == 0:
|
16274
16275
|
CMGR = None
|
16275
16276
|
if idx == 0:
|
16276
16277
|
first_mrr = MRR
|
16277
16278
|
else:
|
16278
|
-
CMGR = ((MRR / first_mrr) ** (1 / idx)
|
16279
|
+
CMGR = ((MRR / first_mrr) ** (1 / idx)) - 1
|
16279
16280
|
|
16280
16281
|
results.append({
|
16281
16282
|
"MO": mo,
|
@@ -0,0 +1,8 @@
|
|
1
|
+
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
+
yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
|
3
|
+
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
+
yeref/yeref.py,sha256=crPI2MI-VESrC5EGX0uyY0it1rXpwFTHULYfZ57NPXI,1043742
|
5
|
+
yeref-0.24.51.dist-info/METADATA,sha256=nYuTCJgHSxWaTNJWWGLnK6pSmaiG4907yYDAGT2R_KM,119
|
6
|
+
yeref-0.24.51.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.24.51.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.24.51.dist-info/RECORD,,
|
yeref-0.24.49.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
-
yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
|
3
|
-
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
-
yeref/yeref.py,sha256=jxbSld3qkAba-VW_E6Z0kGWaUGt07cU1Yl8IjCcQ8GU,1043818
|
5
|
-
yeref-0.24.49.dist-info/METADATA,sha256=wWh9sIANS569aeidXm4Go-_o0LiTOyA4CLl5WF8e47M,119
|
6
|
-
yeref-0.24.49.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.24.49.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.24.49.dist-info/RECORD,,
|
File without changes
|
File without changes
|