yeref 0.24.74__py3-none-any.whl → 0.24.76__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
@@ -16496,6 +16496,7 @@ async def return_retention_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16496
16496
|
if not cohort_months:
|
16497
16497
|
return
|
16498
16498
|
|
16499
|
+
# Функция прибавления месяцев
|
16499
16500
|
def add_months(mo_str, n):
|
16500
16501
|
y, m = map(int, mo_str.split("-"))
|
16501
16502
|
total = m + n
|
@@ -16523,12 +16524,15 @@ async def return_retention_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16523
16524
|
y1, m1 = map(int, calendar_mo.split("-"))
|
16524
16525
|
offset = (y1 - y0) * 12 + (m1 - m0)
|
16525
16526
|
if offset < 0:
|
16526
|
-
|
16527
|
+
row.append("")
|
16527
16528
|
else:
|
16528
16529
|
rev = rev_by_cohort[c].get(offset, 0.0)
|
16529
|
-
|
16530
|
-
|
16531
|
-
|
16530
|
+
if rev > 0:
|
16531
|
+
cell = f"{rev:.1f}"
|
16532
|
+
row.append(cell)
|
16533
|
+
row_sum += rev
|
16534
|
+
else:
|
16535
|
+
row.append("")
|
16532
16536
|
row.append(f"{row_sum:.1f}")
|
16533
16537
|
writer.writerow(row)
|
16534
16538
|
|
@@ -16539,6 +16543,7 @@ async def return_retention_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
|
|
16539
16543
|
logger.info(log_ % str(e))
|
16540
16544
|
await asyncio.sleep(round(random.uniform(0, 1), 2))
|
16541
16545
|
|
16546
|
+
|
16542
16547
|
# endregion
|
16543
16548
|
|
16544
16549
|
|
@@ -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=MwzWQTSqgeehsMOK_9lsWv6BwiTcmt3vIaOggbD04lk,1053721
|
5
|
+
yeref-0.24.76.dist-info/METADATA,sha256=fMhAOMSJt58IbkBM22CrJmrLjoOk-v0azoV74pdvw_4,119
|
6
|
+
yeref-0.24.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.24.76.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.24.76.dist-info/RECORD,,
|
yeref-0.24.74.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=sOW0lT4-nwnMOmfix4918ek-_7jsv4yBJ4vbZzGX7eE,1053530
|
5
|
-
yeref-0.24.74.dist-info/METADATA,sha256=3wkPOhoE-zNSpttadDOz_UtFgqYe010slfhJ6iUbWCg,119
|
6
|
-
yeref-0.24.74.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.24.74.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.24.74.dist-info/RECORD,,
|
File without changes
|
File without changes
|