yeref 0.24.55__tar.gz → 0.24.57__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.55 → yeref-0.24.57}/PKG-INFO +1 -1
- {yeref-0.24.55 → yeref-0.24.57}/setup.py +1 -1
- {yeref-0.24.55 → yeref-0.24.57}/yeref/yeref.py +10 -4
- {yeref-0.24.55 → yeref-0.24.57}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.55 → yeref-0.24.57}/pyproject.toml +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/setup.cfg +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref/__init__.py +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref/l_.py +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref/tonweb.js +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.55 → yeref-0.24.57}/yeref.egg-info/top_level.txt +0 -0
@@ -16175,8 +16175,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16175
16175
|
|
16176
16176
|
# вход в приложение
|
16177
16177
|
user_dau_dates.add(entry_date)
|
16178
|
-
|
16179
|
-
# остальные посещения
|
16180
16178
|
for m in user_mau:
|
16181
16179
|
day = random.randint(1, 28)
|
16182
16180
|
visit = f"{m}-{day:02}"
|
@@ -16184,6 +16182,15 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16184
16182
|
if dt_visit >= entry_dt_obj and random.random() < 0.7:
|
16185
16183
|
user_dau_dates.add(visit)
|
16186
16184
|
|
16185
|
+
# статусы (отток) с низкой вероятностью
|
16186
|
+
USER_STATUSES = []
|
16187
|
+
if random.random() < 0.2: # 10% шанс оттока
|
16188
|
+
churn_month = random.choice(valid_months)
|
16189
|
+
churn_day = random.randint(1, 28)
|
16190
|
+
churn_date = f"{churn_month}-{churn_day:02}"
|
16191
|
+
churn_ts = datetime.strptime(churn_date, "%Y-%m-%d").strftime("%d-%m-%Y") + "_23-59-59"
|
16192
|
+
USER_STATUSES = [{random.choice(["left", "kicked"]): churn_ts}]
|
16193
|
+
|
16187
16194
|
user_dau = sorted(user_dau_dates)
|
16188
16195
|
wallet = f"wallet{random.randint(1, 100)}" if txs else random.choice([f"wallet{random.randint(1, 100)}", ""])
|
16189
16196
|
|
@@ -16289,8 +16296,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16289
16296
|
if cmgr_values:
|
16290
16297
|
avg_cmgr = sum(cmgr_values) / len(cmgr_values)
|
16291
16298
|
writer.writerow([])
|
16292
|
-
writer.writerow(
|
16293
|
-
[f"Every month, revenue multiplied by approximately {round(1 + avg_cmgr, 2)}× on average."])
|
16299
|
+
writer.writerow([f"Revenue ~ ×{round(1 + avg_cmgr, 2)} avg-monthly"])
|
16294
16300
|
|
16295
16301
|
# отправить файл
|
16296
16302
|
thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|