yeref 0.25.26__py3-none-any.whl → 0.25.28__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
@@ -4020,7 +4020,7 @@ async def check_schema_exists(schema_name, db_pool):
4020
4020
  return result
4021
4021
 
4022
4022
 
4023
- async def not_del_if_payments(chat_id, status, BASE_P):
4023
+ async def not_del_if_payments(chat_id, status, MEDIA_D, BASE_P):
4024
4024
  try:
4025
4025
  sql = "SELECT USER_VARS, USER_LSTS FROM \"USER\" WHERE USER_TID=$1"
4026
4026
  data_users = await db_select_pg(sql, (chat_id,), BASE_P)
@@ -4045,6 +4045,8 @@ async def not_del_if_payments(chat_id, status, BASE_P):
4045
4045
  sql = "DELETE FROM \"USER\" WHERE USER_TID=$1"
4046
4046
  await db_change_pg(sql, (chat_id,), BASE_P)
4047
4047
  print("DELETE FROM \"USER\" WHERE USER_TID=$1")
4048
+
4049
+ shutil.rmtree(os.path.join(MEDIA_D, str(chat_id)))
4048
4050
  except Exception as e:
4049
4051
  logger.info(log_ % str(e))
4050
4052
  await asyncio.sleep(round(random.uniform(0, 1), 2))
@@ -8627,16 +8629,17 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
8627
8629
  INSERT INTO \"USER\" (
8628
8630
  USER_TID, USER_USERNAME, USER_FULLNAME, USER_GAMES, USER_VARS, USER_LSTS
8629
8631
  )
8630
- VALUES ($1, $2, $3, $4, $5, $6)
8632
+ VALUES ($1, $2, $3, $4, $5, $6, $7)
8631
8633
  ON CONFLICT (USER_TID) DO UPDATE
8632
8634
  SET
8633
8635
  USER_USERNAME = EXCLUDED.USER_USERNAME,
8634
8636
  USER_FULLNAME = EXCLUDED.USER_FULLNAME,
8637
+ USER_LZ = EXCLUDED.USER_LZ,
8635
8638
  USER_GAMES = EXCLUDED.USER_GAMES,
8636
8639
  USER_VARS = EXCLUDED.USER_VARS,
8637
8640
  USER_LSTS = EXCLUDED.USER_LSTS
8638
8641
  """
8639
- await db_change_pg(sql, (USER_TID, username, full_name,
8642
+ await db_change_pg(sql, (USER_TID, username, full_name, lz,
8640
8643
  json.dumps(USER_GAMES, ensure_ascii=False),
8641
8644
  json.dumps(USER_VARS, ensure_ascii=False),
8642
8645
  json.dumps(USER_LSTS, ensure_ascii=False),), BASE_P)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.25.26
3
+ Version: 0.25.28
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=LsciHUN0b5NbsLsRRbG12blZGXVr_i4Fhj2aQItIZbI,1173447
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=M5xBK8SCq-slZv0hP34oY89KwViCaU2yyq0ZSzkQUFw,1024382
5
+ yeref-0.25.28.dist-info/METADATA,sha256=sVKi5gkDRYEWHNXFzrWfT8fCCtyjcECzar3p9TThgmo,119
6
+ yeref-0.25.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.25.28.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.25.28.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
- yeref/l_.py,sha256=LsciHUN0b5NbsLsRRbG12blZGXVr_i4Fhj2aQItIZbI,1173447
3
- yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
- yeref/yeref.py,sha256=5zBKB6tuYTWiNR0Ig8T6aPcE2y8UwF8evLdJ61ikOUI,1024265
5
- yeref-0.25.26.dist-info/METADATA,sha256=TSBCijCgFKtFAyyU2Or6JwvW9x6Y_81dl-vsyD3VHDg,119
6
- yeref-0.25.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.25.26.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.25.26.dist-info/RECORD,,