yeref 0.24.39__tar.gz → 0.24.41__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.39
3
+ Version: 0.24.41
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.39',
5
+ version='0.24.41',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -2437,7 +2437,7 @@ effects_real_my = {'5107584321108051014': '👍', '5159385139981059251': '❤',
2437
2437
 
2438
2438
  themes_ = ['🐥', '⛄', '💎', '👨\u200d🏫', '🌷', '💜', '🎄', '🎮']
2439
2439
  extra_prompt = 'hyper-realistic image, iphone photo, ultra-realistic photography, cinematic photo, uhd motion capture, high-contrast image, 8k camera, atmospheric light'
2440
- short_description = f"""👩🏽‍💻 Web3ᵀᴼᴺ-@tg-#neuro apps
2440
+ short_description = f"""👩🏽‍💻 Web3ᵀᴼᴺ-@tg-#neuro apps for⋅ᯅ⋅creators
2441
2441
 
2442
2442
  Start: t.me/FereyDemoBot
2443
2443
  🇬🇧🇨🇳🇦🇪🇪🇸🇷🇺🇫🇷
@@ -15470,7 +15470,7 @@ async def pay_handler_for_all(bot, message, ideas_en, ideas_ru, PROJECT_USERNAME
15470
15470
  USER_LSTS["USER_PAYMENTS"] = USER_PAYMENTS
15471
15471
  USER_LSTS = json.dumps(USER_LSTS, ensure_ascii=False)
15472
15472
 
15473
- sql = f"UPDATE \"USER\" SET USER_PAY=$1 WHERE USER_TID=$2"
15473
+ sql = f"UPDATE \"USER\" SET USER_LSTS=$1 WHERE USER_TID=$2"
15474
15474
  await db_change_pg(sql, (USER_LSTS, chat_id,), BASE_P)
15475
15475
 
15476
15476
  text = f"{l_payment_success[lz]} ★{total_amount}, {payload_txt}\n\n♥️ @{PROJECT_USERNAME} {l_payment_hashtag[lz]}"
@@ -15944,6 +15944,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
15944
15944
  "mau": 0,
15945
15945
  "wallets": 0,
15946
15946
  "tx": 0,
15947
+ "pay": 0,
15947
15948
  "tvl": 0,
15948
15949
  "/start": 0,
15949
15950
  "/startapp": 0
@@ -15963,6 +15964,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
15963
15964
  USER_DAU = USER_LSTS.get("USER_DAU", [])
15964
15965
  USER_MAU = USER_LSTS.get("USER_MAU", [])
15965
15966
  USER_TXS = USER_LSTS.get("USER_TXS", [])
15967
+ USER_PAYMENTS = USER_LSTS.get("USER_PAYMENTS", [])
15966
15968
  USER_STATUSES = USER_LSTS.get("USER_STATUSES", [])
15967
15969
 
15968
15970
  if USER_WALLET: wallets_set.add(USER_WALLET)
@@ -15984,13 +15986,16 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
15984
15986
  if USER_WALLET:
15985
15987
  metrics_by_month[month_key]["wallets"] += 1
15986
15988
 
15987
- for tx in USER_TXS:
15988
- dt_start = tx.get("DT_START", "")
15989
- amount = int(tx.get("AMOUNT", "0"))
15990
- dt_tx = datetime.strptime(dt_start, "%d-%m-%Y_%H-%M-%S")
15991
- month_key = dt_tx.strftime("%Y-%m")
15992
- metrics_by_month[month_key]["tx"] += 1
15993
- metrics_by_month[month_key]["tvl"] += amount
15989
+ # for tx in USER_TXS:
15990
+ # dt_start = tx.get("DT_START", "")
15991
+ # amount = int(tx.get("AMOUNT", "0"))
15992
+ # dt_tx = datetime.strptime(dt_start, "%d-%m-%Y_%H-%M-%S")
15993
+ # month_key = dt_tx.strftime("%Y-%m")
15994
+ # metrics_by_month[month_key]["tx"] += 1
15995
+ # metrics_by_month[month_key]["tvl"] += amount
15996
+
15997
+ metrics_by_month[month_key]["tx"] += len(USER_TXS)
15998
+ metrics_by_month[month_key]["pay"] += len(USER_PAYMENTS)
15994
15999
 
15995
16000
  if USER_DT:
15996
16001
  dt_obj = datetime.strptime(USER_DT, "%d-%m-%Y_%H-%M-%S")
@@ -16012,7 +16017,7 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16012
16017
  f_name = os.path.join(EXTRA_D, "1_metrics.csv")
16013
16018
  with open(f_name, mode="w", encoding="utf-8", newline="") as csvfile:
16014
16019
  writer = csv.writer(csvfile, delimiter=',')
16015
- writer.writerow(["MO", "DAU", "MAU", "Wallets", "Transactions", "TVL", "/start", "/startapp"])
16020
+ writer.writerow(["MO", "DAU", "MAU", "Wallets", "TX Count", "PAY Count", "/start", "/startapp", "TVL"])
16016
16021
  for ym in all_months:
16017
16022
  row = [
16018
16023
  ym,
@@ -16020,9 +16025,10 @@ async def return_view_metrics(bot, PROJECT_USERNAME, EXTRA_D, BASE_P):
16020
16025
  metrics_by_month[ym]["mau"],
16021
16026
  metrics_by_month[ym]["wallets"],
16022
16027
  metrics_by_month[ym]["tx"],
16023
- "",
16028
+ metrics_by_month[ym]["pay"],
16024
16029
  metrics_by_month[ym]["/start"],
16025
16030
  metrics_by_month[ym]["/startapp"],
16031
+ "",
16026
16032
  ]
16027
16033
  writer.writerow(row)
16028
16034
  csvfile.write("\n")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.39
3
+ Version: 0.24.41
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