yeref 0.24.58__py3-none-any.whl → 0.24.59__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
@@ -16293,11 +16293,12 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16293
16293
  row["ChurnR"], row["LTV1"], row["LTV2"], row["CMGR"], row["CAC"]
16294
16294
  ])
16295
16295
 
16296
- cmgr_values = [float(row["CMGR"]) for row in results if row["CMGR"] != '']
16297
- if cmgr_values:
16298
- avg_cmgr = sum(cmgr_values) / len(cmgr_values)
16296
+ cmgr = [float(r["CMGR"]) for r in results if r["CMGR"] != ""]
16297
+ if cmgr:
16298
+ factors = [1 + v for v in cmgr]
16299
+ avg = math.prod(factors) ** (1 / len(factors))
16299
16300
  writer.writerow([])
16300
- writer.writerow([f"Rev ~ ×{round(1 + avg_cmgr, 2)} monthly"])
16301
+ writer.writerow([f"Rev ~ ×{round(avg, 2)} monthly"])
16301
16302
 
16302
16303
  # отправить файл
16303
16304
  thumb = types.FSInputFile(os.path.join(EXTRA_D, "parse.jpg"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.58
3
+ Version: 0.24.59
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -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=agNJ36MiGH-INGAhoaeSPgym6QO9nlJmrKf5ZObMZr0,1043932
5
+ yeref-0.24.59.dist-info/METADATA,sha256=klrdD5dBXpfBzMifbDoE3Vm79Z6FRhgZPOJyTSFHNQY,119
6
+ yeref-0.24.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.24.59.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.24.59.dist-info/RECORD,,
@@ -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=oYcAHaa446TWJ629Jdp-HTUWUxKybIgPG8n5h8JQ-hE,1043913
5
- yeref-0.24.58.dist-info/METADATA,sha256=ImkuOmjIcywQPSe2bTJStJWvt7aQUhsF7DDi093zEZw,119
6
- yeref-0.24.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.24.58.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.58.dist-info/RECORD,,