yeref 0.24.43__tar.gz → 0.24.45__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.43 → yeref-0.24.45}/PKG-INFO +1 -1
- {yeref-0.24.43 → yeref-0.24.45}/setup.py +1 -1
- {yeref-0.24.43 → yeref-0.24.45}/yeref/yeref.py +19 -11
- {yeref-0.24.43 → yeref-0.24.45}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.43 → yeref-0.24.45}/pyproject.toml +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/setup.cfg +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref/__init__.py +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref/l_.py +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref/tonweb.js +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.43 → yeref-0.24.45}/yeref.egg-info/top_level.txt +0 -0
@@ -15926,7 +15926,7 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
|
|
15926
15926
|
|
15927
15927
|
|
15928
15928
|
# region unit ecomonics
|
15929
|
-
async def
|
15929
|
+
async def return_activity_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
15930
15930
|
try:
|
15931
15931
|
schema_name = "USER"
|
15932
15932
|
if PROJECT_USERNAME == 'FereyBotBot':
|
@@ -15953,6 +15953,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
15953
15953
|
seen_dau = set()
|
15954
15954
|
wallets_set = set()
|
15955
15955
|
users_set = set()
|
15956
|
+
pay_set = set()
|
15956
15957
|
|
15957
15958
|
def process_user_rows(rows, schema_name=""):
|
15958
15959
|
# months = ["2025-06", "2025-07", "2025-08", "2025-09"]
|
@@ -16043,6 +16044,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16043
16044
|
last_key = list(last_status.keys())[0]
|
16044
16045
|
if last_key not in ['left', 'kicked']:
|
16045
16046
|
users_set.add(USER_TID)
|
16047
|
+
pay_set.add(USER_TID)
|
16046
16048
|
else:
|
16047
16049
|
users_set.add(USER_TID)
|
16048
16050
|
|
@@ -16062,16 +16064,22 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16062
16064
|
if USER_WALLET:
|
16063
16065
|
metrics_by_month[month_key]["wallets"] += 1
|
16064
16066
|
|
16065
|
-
|
16066
|
-
|
16067
|
-
|
16068
|
-
|
16069
|
-
|
16070
|
-
|
16071
|
-
|
16072
|
-
|
16073
|
-
|
16074
|
-
|
16067
|
+
for it in USER_TXS:
|
16068
|
+
dt_start = it.get("DT_START", "")
|
16069
|
+
amount = int(it.get("AMOUNT", "0"))
|
16070
|
+
dt_tx = datetime.strptime(dt_start, "%d-%m-%Y_%H-%M-%S")
|
16071
|
+
month_key = dt_tx.strftime("%Y-%m")
|
16072
|
+
metrics_by_month[month_key]["tx"] += 1
|
16073
|
+
|
16074
|
+
for it in USER_PAYMENTS:
|
16075
|
+
dt_start = it.get("DT_START", "")
|
16076
|
+
amount = int(it.get("AMOUNT", "0"))
|
16077
|
+
dt_tx = datetime.strptime(dt_start, "%d-%m-%Y_%H-%M-%S")
|
16078
|
+
month_key = dt_tx.strftime("%Y-%m")
|
16079
|
+
metrics_by_month[month_key]["tx"] += 1
|
16080
|
+
|
16081
|
+
# metrics_by_month[month_key]["tx"] += len(USER_TXS)
|
16082
|
+
# metrics_by_month[month_key]["pay"] += len(USER_PAYMENTS)
|
16075
16083
|
|
16076
16084
|
if USER_DT:
|
16077
16085
|
dt_obj = datetime.strptime(USER_DT, "%d-%m-%Y_%H-%M-%S")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|