yeref 0.24.42__tar.gz → 0.24.44__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.42 → yeref-0.24.44}/PKG-INFO +1 -1
- {yeref-0.24.42 → yeref-0.24.44}/setup.py +1 -1
- {yeref-0.24.42 → yeref-0.24.44}/yeref/yeref.py +7 -7
- {yeref-0.24.42 → yeref-0.24.44}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.42 → yeref-0.24.44}/pyproject.toml +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/setup.cfg +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/yeref/__init__.py +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/yeref/l_.py +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/yeref/tonweb.js +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.42 → yeref-0.24.44}/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':
|
@@ -15954,7 +15954,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
15954
15954
|
wallets_set = set()
|
15955
15955
|
users_set = set()
|
15956
15956
|
|
15957
|
-
def process_user_rows(rows):
|
15957
|
+
def process_user_rows(rows, schema_name=""):
|
15958
15958
|
# months = ["2025-06", "2025-07", "2025-08", "2025-09"]
|
15959
15959
|
# data_users = []
|
15960
15960
|
# for _ in range(3):
|
@@ -16083,8 +16083,8 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16083
16083
|
ENT_TID = item[0]
|
16084
16084
|
sql = f'SELECT USER_TID, USER_VARS, USER_LSTS FROM {schema_name}_{ENT_TID}.USER'
|
16085
16085
|
data_users = await db_select_pg(sql, (), BASE_P)
|
16086
|
-
print(f"{data_users=}")
|
16087
|
-
process_user_rows(data_users)
|
16086
|
+
print(f"schema_name {data_users=}")
|
16087
|
+
process_user_rows(data_users, schema_name)
|
16088
16088
|
|
16089
16089
|
sql = f"SELECT USER_TID, USER_VARS, USER_LSTS FROM \"USER\""
|
16090
16090
|
data_users = await db_select_pg(sql, (), BASE_P)
|
@@ -16095,17 +16095,17 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16095
16095
|
f_name = os.path.join(EXTRA_D, "1_metrics.csv")
|
16096
16096
|
with open(f_name, mode="w", encoding="utf-8", newline="") as csvfile:
|
16097
16097
|
writer = csv.writer(csvfile, delimiter=',')
|
16098
|
-
writer.writerow(["MO", "DAU", "MAU", "Wallets", "TX Count", "PAY Count", "
|
16098
|
+
writer.writerow(["MO", "/start", "/startapp", "DAU", "MAU", "Wallets", "TX Count", "PAY Count", "TVL"])
|
16099
16099
|
for ym in all_months:
|
16100
16100
|
row = [
|
16101
16101
|
ym,
|
16102
|
+
metrics_by_month[ym]["/start"],
|
16103
|
+
metrics_by_month[ym]["/startapp"],
|
16102
16104
|
metrics_by_month[ym]["dau"],
|
16103
16105
|
metrics_by_month[ym]["mau"],
|
16104
16106
|
metrics_by_month[ym]["wallets"],
|
16105
16107
|
metrics_by_month[ym]["tx"],
|
16106
16108
|
metrics_by_month[ym]["pay"],
|
16107
|
-
metrics_by_month[ym]["/start"],
|
16108
|
-
metrics_by_month[ym]["/startapp"],
|
16109
16109
|
"",
|
16110
16110
|
]
|
16111
16111
|
writer.writerow(row)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|