yeref 0.24.26__tar.gz → 0.24.27__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.26
3
+ Version: 0.24.27
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.26',
5
+ version='0.24.27',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -15536,6 +15536,7 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15536
15536
  sql = f"SELECT USER_TID, USER_GAMES, USER_VARS, USER_LSTS FROM \"USER\" WHERE USER_TID=$1"
15537
15537
  data_user = await db_select_pg(sql, (chat_id,), BASE_P)
15538
15538
 
15539
+ # region data
15539
15540
  if len(data_user):
15540
15541
  USER_TID, USER_GAMES, USER_VARS, USER_LSTS = data_user[0]
15541
15542
  USER_GAMES = json.loads(USER_GAMES)
@@ -15543,7 +15544,6 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15543
15544
  USER_LSTS = json.loads(USER_LSTS)
15544
15545
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
15545
15546
 
15546
- # region lz
15547
15547
  if lc:
15548
15548
  USER_VARS['USER_LC'] = lc
15549
15549
  lz = 'en'
@@ -15562,8 +15562,14 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15562
15562
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
15563
15563
  lz = 'ru'
15564
15564
  USER_VARS['USER_LZ'] = lz
15565
- # endregion
15566
- print(f"{USER_VARS=}, {lc=}")
15565
+
15566
+ now = datetime.now(timezone.utc)
15567
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
15568
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
15569
+ USER_VARS['USER_SIG'] = usr_sig
15570
+ USER_VARS['USER_ISPREMIUM'] = is_premium
15571
+ lz = USER_VARS.get('USER_LZ', 'en')
15572
+ # endregion
15567
15573
 
15568
15574
  # region tx
15569
15575
  if connectedAddress:
@@ -15618,12 +15624,6 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15618
15624
  if extra_bot: await extra_bot.session.close()
15619
15625
  # endregion
15620
15626
 
15621
- now = datetime.now(timezone.utc)
15622
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
15623
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
15624
- USER_VARS['USER_SIG'] = usr_sig
15625
- USER_VARS['USER_ISPREMIUM'] = is_premium
15626
-
15627
15627
  sql = f"""
15628
15628
  INSERT INTO \"USER\" (
15629
15629
  USER_TID, USER_USERNAME, USER_FULLNAME, USER_GAMES, USER_VARS, USER_LSTS
@@ -15680,7 +15680,8 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
15680
15680
 
15681
15681
  sql = f"SELECT USER_TID, USER_GAMES, USER_VARS, USER_LSTS FROM {schema_name}_{tid}.USER WHERE USER_TID=$1"
15682
15682
  data_user = await db_select_pg(sql, (chat_id,), BASE_P)
15683
- print(f"{data_user=}")
15683
+
15684
+ # region data
15684
15685
  if len(data_user):
15685
15686
  USER_TID, USER_GAMES, USER_VARS, USER_LSTS = data_user[0]
15686
15687
  USER_GAMES = json.loads(USER_GAMES)
@@ -15688,7 +15689,6 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
15688
15689
  USER_LSTS = json.loads(USER_LSTS)
15689
15690
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
15690
15691
 
15691
- # region lz
15692
15692
  if lc:
15693
15693
  USER_VARS['USER_LC'] = lc
15694
15694
  lz = 'en'
@@ -15707,8 +15707,13 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
15707
15707
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
15708
15708
  lz = 'ru'
15709
15709
  USER_VARS['USER_LZ'] = lz
15710
- # endregion
15711
- print(f"{USER_VARS=}, {lc=}")
15710
+
15711
+ now = datetime.now(timezone.utc)
15712
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
15713
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
15714
+ USER_VARS['USER_SIG'] = usr_sig
15715
+ USER_VARS['USER_ISPREMIUM'] = is_premium
15716
+ # endregion
15712
15717
 
15713
15718
  # region tx
15714
15719
  if connectedAddress:
@@ -15733,12 +15738,6 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
15733
15738
  print(f"{USER_TXS=}, {USER_LSTS=}")
15734
15739
  # endregion
15735
15740
 
15736
- now = datetime.now(timezone.utc)
15737
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
15738
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
15739
- USER_VARS['USER_SIG'] = usr_sig
15740
- USER_VARS['USER_ISPREMIUM'] = is_premium
15741
-
15742
15741
  sql = f"""
15743
15742
  INSERT INTO {schema_name}_{tid}.USER (
15744
15743
  USER_TID, USER_USERNAME, USER_FULLNAME, USER_GAMES, USER_VARS, USER_LSTS
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.26
3
+ Version: 0.24.27
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