yeref 0.24.50__tar.gz → 0.24.52__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.50
3
+ Version: 0.24.52
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.50',
5
+ version='0.24.52',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -16140,7 +16140,7 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16140
16140
 
16141
16141
  months = ["2025-06", "2025-07", "2025-08", "2025-09"]
16142
16142
  data_users = []
16143
- for _ in range(5):
16143
+ for _ in range(8):
16144
16144
  # дата входа
16145
16145
  entry_month = random.choice(months)
16146
16146
  entry_day = random.randint(1, 28)
@@ -16158,35 +16158,20 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16158
16158
  user_dau_dates = set()
16159
16159
  txs, payments = [], []
16160
16160
 
16161
- # транзакция
16162
- if user_mau and random.random() < 0.5:
16163
- tx_month = random.choice(user_mau)
16164
- tx_day = random.randint(1, 28)
16165
- tx_date = f"{tx_month}-{tx_day:02}"
16166
- dt_tx = datetime.strptime(tx_date, "%Y-%m-%d")
16167
- if dt_tx >= entry_dt_obj:
16168
- txs = [{
16169
- "TYPE": random.choice(["don", "sub", "pst"]),
16170
- "AMOUNT": str(random.randint(1, 10)),
16171
- "ADDRESS": f"address{random.randint(1, 999)}",
16172
- "DT_START": f"{dt_tx.strftime('%d-%m-%Y')}_12-00-00",
16173
- }]
16174
- user_dau_dates.add(tx_date)
16175
-
16176
16161
  # платеж
16177
- if user_mau and random.random() < 0.5:
16162
+ if user_mau:
16178
16163
  pay_month = random.choice(user_mau)
16179
16164
  pay_day = random.randint(1, 28)
16180
16165
  pay_date = f"{pay_month}-{pay_day:02}"
16181
16166
  dt_pay = datetime.strptime(pay_date, "%Y-%m-%d")
16182
- if dt_pay >= entry_dt_obj:
16183
- payments = [{
16184
- "TYPE": random.choice(["don", "sub", "pst"]),
16185
- "DT_START": f"{dt_pay.strftime('%d-%m-%Y')}_14-00-00",
16186
- "DT_END": "0",
16187
- "AMOUNT": str(random.randint(1, 10))
16188
- }]
16189
- user_dau_dates.add(pay_date)
16167
+ # if dt_pay >= entry_dt_obj:
16168
+ payments = [{
16169
+ "TYPE": random.choice(["don", "sub", "pst"]),
16170
+ "DT_START": f"{dt_pay.strftime('%d-%m-%Y')}_14-00-00",
16171
+ "DT_END": "0",
16172
+ "AMOUNT": str(random.randint(1, 10))
16173
+ }]
16174
+ user_dau_dates.add(pay_date)
16190
16175
 
16191
16176
  # вход в приложение
16192
16177
  user_dau_dates.add(entry_date)
@@ -16251,7 +16236,6 @@ async def return_unit_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16251
16236
  N = data["N"]
16252
16237
  MRR = data["sum_amount"]
16253
16238
 
16254
-
16255
16239
  def fmt(x):
16256
16240
  return (f"{x:.2f}".rstrip("0").rstrip(".")) if x is not None else ""
16257
16241
  mrr_fmt = fmt(MRR)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.50
3
+ Version: 0.24.52
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