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