yeref 0.24.57__tar.gz → 0.24.59__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.57
3
+ Version: 0.24.59
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='yeref',
5
- version='0.24.57',
5
+ version='0.24.59',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -16197,7 +16197,8 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16197
16197
  data_users.append((
16198
16198
  random.randint(100000, 999999),
16199
16199
  json.dumps({"USER_WALLET": wallet, "USER_UTM": utm, "USER_DT": entry_dt}),
16200
- json.dumps({"USER_DAU": user_dau, "USER_MAU": user_mau, "USER_TXS": txs, "USER_PAYMENTS": payments})
16200
+ json.dumps({"USER_DAU": user_dau, "USER_MAU": user_mau, "USER_TXS": txs,
16201
+ "USER_PAYMENTS": payments, "USER_STATUSES": USER_STATUSES})
16201
16202
  ))
16202
16203
  print(f"gen {data_users=}")
16203
16204
 
@@ -16292,11 +16293,12 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16292
16293
  row["ChurnR"], row["LTV1"], row["LTV2"], row["CMGR"], row["CAC"]
16293
16294
  ])
16294
16295
 
16295
- cmgr_values = [float(row["CMGR"]) for row in results if row["CMGR"] != '']
16296
- if cmgr_values:
16297
- 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))
16298
16300
  writer.writerow([])
16299
- writer.writerow([f"Revenue ~ ×{round(1 + avg_cmgr, 2)} avg-monthly"])
16301
+ writer.writerow([f"Rev ~ ×{round(avg, 2)} monthly"])
16300
16302
 
16301
16303
  # отправить файл
16302
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.57
3
+ Version: 0.24.59
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
File without changes
File without changes
File without changes
File without changes
File without changes