yeref 0.24.40__py3-none-any.whl → 0.24.41__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
@@ -15944,6 +15944,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
15944
15944
|
"mau": 0,
|
15945
15945
|
"wallets": 0,
|
15946
15946
|
"tx": 0,
|
15947
|
+
"pay": 0,
|
15947
15948
|
"tvl": 0,
|
15948
15949
|
"/start": 0,
|
15949
15950
|
"/startapp": 0
|
@@ -15963,6 +15964,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
15963
15964
|
USER_DAU = USER_LSTS.get("USER_DAU", [])
|
15964
15965
|
USER_MAU = USER_LSTS.get("USER_MAU", [])
|
15965
15966
|
USER_TXS = USER_LSTS.get("USER_TXS", [])
|
15967
|
+
USER_PAYMENTS = USER_LSTS.get("USER_PAYMENTS", [])
|
15966
15968
|
USER_STATUSES = USER_LSTS.get("USER_STATUSES", [])
|
15967
15969
|
|
15968
15970
|
if USER_WALLET: wallets_set.add(USER_WALLET)
|
@@ -15984,13 +15986,16 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
15984
15986
|
if USER_WALLET:
|
15985
15987
|
metrics_by_month[month_key]["wallets"] += 1
|
15986
15988
|
|
15987
|
-
for tx in USER_TXS:
|
15988
|
-
|
15989
|
-
|
15990
|
-
|
15991
|
-
|
15992
|
-
|
15993
|
-
|
15989
|
+
# for tx in USER_TXS:
|
15990
|
+
# dt_start = tx.get("DT_START", "")
|
15991
|
+
# amount = int(tx.get("AMOUNT", "0"))
|
15992
|
+
# dt_tx = datetime.strptime(dt_start, "%d-%m-%Y_%H-%M-%S")
|
15993
|
+
# month_key = dt_tx.strftime("%Y-%m")
|
15994
|
+
# metrics_by_month[month_key]["tx"] += 1
|
15995
|
+
# metrics_by_month[month_key]["tvl"] += amount
|
15996
|
+
|
15997
|
+
metrics_by_month[month_key]["tx"] += len(USER_TXS)
|
15998
|
+
metrics_by_month[month_key]["pay"] += len(USER_PAYMENTS)
|
15994
15999
|
|
15995
16000
|
if USER_DT:
|
15996
16001
|
dt_obj = datetime.strptime(USER_DT, "%d-%m-%Y_%H-%M-%S")
|
@@ -16012,7 +16017,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16012
16017
|
f_name = os.path.join(EXTRA_D, "1_metrics.csv")
|
16013
16018
|
with open(f_name, mode="w", encoding="utf-8", newline="") as csvfile:
|
16014
16019
|
writer = csv.writer(csvfile, delimiter=',')
|
16015
|
-
writer.writerow(["MO", "DAU", "MAU", "Wallets", "
|
16020
|
+
writer.writerow(["MO", "DAU", "MAU", "Wallets", "TX Count", "PAY Count", "/start", "/startapp", "TVL"])
|
16016
16021
|
for ym in all_months:
|
16017
16022
|
row = [
|
16018
16023
|
ym,
|
@@ -16020,9 +16025,10 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16020
16025
|
metrics_by_month[ym]["mau"],
|
16021
16026
|
metrics_by_month[ym]["wallets"],
|
16022
16027
|
metrics_by_month[ym]["tx"],
|
16023
|
-
"",
|
16028
|
+
metrics_by_month[ym]["pay"],
|
16024
16029
|
metrics_by_month[ym]["/start"],
|
16025
16030
|
metrics_by_month[ym]["/startapp"],
|
16031
|
+
"",
|
16026
16032
|
]
|
16027
16033
|
writer.writerow(row)
|
16028
16034
|
csvfile.write("\n")
|
@@ -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=ypQzkPeLdq27uUvefPw5__VoeAbZkhZdznkEQE8JBq0,1031798
|
5
|
+
yeref-0.24.41.dist-info/METADATA,sha256=Ubs6E_PyhU1NVfxZDtR8t37LSoEJdtdznQlfHFnywlw,119
|
6
|
+
yeref-0.24.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.24.41.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.24.41.dist-info/RECORD,,
|
yeref-0.24.40.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=mwORFYEs-Z8ffoUGW7-3EafXRFmVw92nlZBh42rymKo,1031496
|
5
|
-
yeref-0.24.40.dist-info/METADATA,sha256=4VJ9po2eQNf516UaEiIgv04U_jrIXqImlU6C0UaTJOQ,119
|
6
|
-
yeref-0.24.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.24.40.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.24.40.dist-info/RECORD,,
|
File without changes
|
File without changes
|