yeref 0.24.29__tar.gz → 0.24.31__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.29
3
+ Version: 0.24.31
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.29',
5
+ version='0.24.31',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -15511,7 +15511,7 @@ async def get_vars_web_main(chat_id, username, full_name, lc, is_premium, utm_we
15511
15511
  return is_paid, till_paid, lz
15512
15512
 
15513
15513
 
15514
- async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url=''):
15514
+ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url='', utm=''):
15515
15515
  chat_id = int(web_app_init_data.get('user', {}).get('id'))
15516
15516
  username = web_app_init_data.get('user', {}).get('username', None)
15517
15517
  first_name = web_app_init_data.get('user', {}).get('first_name', '')
@@ -15570,10 +15570,12 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15570
15570
  USER_VARS['USER_ISPREMIUM'] = is_premium
15571
15571
  lz = USER_VARS.get('USER_LZ', 'en')
15572
15572
 
15573
- if USER_VARS['USER_DT'] == '':
15573
+ print(f"before {USER_VARS=}")
15574
+ if not USER_VARS.get('USER_DT') and not USER_VARS.get('USER_UTM') and utm:
15575
+ USER_VARS['USER_UTM'] = utm
15576
+ if not USER_VARS.get('USER_DT'):
15574
15577
  USER_VARS['USER_DT'] = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
15575
- # if utm != '':
15576
- # USER_VARS['USER_UTM'] = utm
15578
+ print(f"after {USER_VARS=}")
15577
15579
  # endregion
15578
15580
 
15579
15581
  # region tx
@@ -15982,7 +15984,7 @@ async def post_save(bot, data_user, data_web, MEDIA_D, BASE_P, KEYS_JSON, PROJEC
15982
15984
  print(f"--------------------------------------------------------")
15983
15985
  print(f"after {POST_MEDIA=}")
15984
15986
 
15985
- if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and 'filev_id' not in POST_MEDIA[0]:
15987
+ if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and len(POST_MEDIA) == 1 and 'filev_id' not in POST_MEDIA[0]:
15986
15988
  asyncio.create_task(convert_to_vinyl(bot, chat_id, ENT_TID, POST_TID, MEDIA_D, EXTRA_D, POST_MEDIA, BASE_P))
15987
15989
 
15988
15990
  # region pay
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.29
3
+ Version: 0.24.31
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