yeref 0.29.2__py3-none-any.whl → 0.29.3__py3-none-any.whl

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.
yeref/yeref.py CHANGED
@@ -7860,13 +7860,6 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
7860
7860
  USER_VARS = json.loads(USER_VARS)
7861
7861
  USER_LSTS = json.loads(USER_LSTS)
7862
7862
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
7863
-
7864
- now = datetime.now(timezone.utc)
7865
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
7866
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
7867
- USER_VARS['USER_SIG'] = usr_sig
7868
- USER_VARS['USER_ISPREMIUM'] = is_premium
7869
-
7870
7863
  if not USER_LZ:
7871
7864
  USER_VARS['USER_LC'] = lc
7872
7865
  lz = 'en'
@@ -7885,11 +7878,18 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
7885
7878
  # europe
7886
7879
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
7887
7880
  lz = 'ru'
7888
- USER_VARS['USER_LZ'] = USER_LZ = lz
7881
+ USER_LZ = lz
7889
7882
  if not USER_DT:
7890
7883
  USER_VARS['USER_DT'] = USER_DT = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
7891
7884
  USER_HID = hashlib.blake2b(f"{'tid'}-{chat_id}".encode('utf-8'), digest_size=4).hexdigest()
7892
7885
  if utm: USER_VARS['USER_UTM'] = utm
7886
+
7887
+ now = datetime.now(timezone.utc)
7888
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
7889
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
7890
+ USER_VARS['USER_SIG'] = usr_sig
7891
+ USER_VARS['USER_ISPREMIUM'] = is_premium
7892
+ USER_VARS['USER_LZ'] = USER_LZ
7893
7893
  print(f"after {USER_VARS=}")
7894
7894
  # endregion
7895
7895
 
@@ -8018,13 +8018,6 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
8018
8018
  USER_VARS = json.loads(USER_VARS)
8019
8019
  USER_LSTS = json.loads(USER_LSTS)
8020
8020
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
8021
-
8022
- now = datetime.now(timezone.utc)
8023
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
8024
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
8025
- USER_VARS['USER_SIG'] = usr_sig
8026
- USER_VARS['USER_ISPREMIUM'] = is_premium
8027
-
8028
8021
  if not USER_LZ:
8029
8022
  USER_VARS['USER_LC'] = lc
8030
8023
  lz = 'en'
@@ -8043,9 +8036,16 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
8043
8036
  # europe
8044
8037
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
8045
8038
  lz = 'ru'
8046
- USER_VARS['USER_LZ'] = USER_LZ = lz
8039
+ USER_LZ = lz
8047
8040
  if not USER_DT: USER_VARS['USER_DT'] = USER_DT = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
8048
8041
  if not USER_HID: USER_HID = hashlib.blake2b(f"{tid}-{chat_id}".encode('utf-8'), digest_size=4).hexdigest()
8042
+
8043
+ now = datetime.now(timezone.utc)
8044
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
8045
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
8046
+ USER_VARS['USER_SIG'] = usr_sig
8047
+ USER_VARS['USER_ISPREMIUM'] = is_premium
8048
+ USER_VARS['USER_LZ'] = USER_LZ
8049
8049
  # endregion
8050
8050
 
8051
8051
  # region tx
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.29.2
3
+ Version: 0.29.3
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -0,0 +1,8 @@
1
+ yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
+ yeref/l_.py,sha256=s9u7itQYW4pzoI3Q4lV5jHEI1OzuIqdzP3n5BrOSt0k,606129
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=6JEMSoxOkvogINIla21X2FKyc18WsrXI2ZlMe66LE7g,1058332
5
+ yeref-0.29.3.dist-info/METADATA,sha256=8CmeKLRJcjnsr5UOMBqw3Q1rvkHt5oBTe5vhXHeks7Y,118
6
+ yeref-0.29.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.29.3.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.29.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
- yeref/l_.py,sha256=s9u7itQYW4pzoI3Q4lV5jHEI1OzuIqdzP3n5BrOSt0k,606129
3
- yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
- yeref/yeref.py,sha256=-Hd4XmJz085nABavgUuWAw0t3t6yVrDMo0X5YlYPnJ0,1058302
5
- yeref-0.29.2.dist-info/METADATA,sha256=C8cvnqPyg7lBI653iv0y9t43xMzppePl8wDq60Gpsd0,118
6
- yeref-0.29.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.29.2.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.29.2.dist-info/RECORD,,
File without changes