yeref 0.29.2__tar.gz → 0.29.3__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.
- {yeref-0.29.2 → yeref-0.29.3}/PKG-INFO +1 -1
- {yeref-0.29.2 → yeref-0.29.3}/setup.py +1 -1
- {yeref-0.29.2 → yeref-0.29.3}/yeref/yeref.py +16 -16
- {yeref-0.29.2 → yeref-0.29.3}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.29.2 → yeref-0.29.3}/pyproject.toml +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/setup.cfg +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref/__init__.py +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref/l_.py +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref/tonweb.js +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.29.2 → yeref-0.29.3}/yeref.egg-info/top_level.txt +0 -0
@@ -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
|
-
|
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
|
-
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|