mdbq 4.1.0__tar.gz → 4.1.1__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.

Potentially problematic release.


This version of mdbq might be problematic. Click here for more details.

Files changed (46) hide show
  1. {mdbq-4.1.0 → mdbq-4.1.1}/PKG-INFO +1 -1
  2. mdbq-4.1.1/mdbq/__version__.py +1 -0
  3. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/auth/auth_backend.py +1 -8
  4. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq.egg-info/PKG-INFO +1 -1
  5. mdbq-4.1.0/mdbq/__version__.py +0 -1
  6. {mdbq-4.1.0 → mdbq-4.1.1}/README.txt +0 -0
  7. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/__init__.py +0 -0
  8. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/auth/__init__.py +0 -0
  9. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/auth/crypto.py +0 -0
  10. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/auth/rate_limiter.py +0 -0
  11. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/js/__init__.py +0 -0
  12. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/js/jc.py +0 -0
  13. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/log/__init__.py +0 -0
  14. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/log/mylogger.py +0 -0
  15. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/myconf/__init__.py +0 -0
  16. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/myconf/myconf.py +0 -0
  17. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/__init__.py +0 -0
  18. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/deduplicator.py +0 -0
  19. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/mysql.py +0 -0
  20. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/s_query.py +0 -0
  21. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/unique_.py +0 -0
  22. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/mysql/uploader.py +0 -0
  23. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/__init__.py +0 -0
  24. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/download_sku_picture.py +0 -0
  25. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/error_handler.py +0 -0
  26. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/otk.py +0 -0
  27. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/pov_city.py +0 -0
  28. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/other/ua_sj.py +0 -0
  29. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/pbix/__init__.py +0 -0
  30. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/pbix/pbix_refresh.py +0 -0
  31. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/pbix/refresh_all.py +0 -0
  32. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/redis/__init__.py +0 -0
  33. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/redis/getredis.py +0 -0
  34. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/redis/redis_cache.py +0 -0
  35. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/route/__init__.py +0 -0
  36. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/route/analytics.py +0 -0
  37. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/route/monitor.py +0 -0
  38. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/route/routes.py +0 -0
  39. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/selenium/__init__.py +0 -0
  40. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/selenium/get_driver.py +0 -0
  41. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq/spider/__init__.py +0 -0
  42. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq.egg-info/SOURCES.txt +0 -0
  43. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq.egg-info/dependency_links.txt +0 -0
  44. {mdbq-4.1.0 → mdbq-4.1.1}/mdbq.egg-info/top_level.txt +0 -0
  45. {mdbq-4.1.0 → mdbq-4.1.1}/setup.cfg +0 -0
  46. {mdbq-4.1.0 → mdbq-4.1.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdbq
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Home-page: https://pypi.org/project/mdbq
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -0,0 +1 @@
1
+ VERSION = '4.1.1'
@@ -82,12 +82,6 @@ ROLE_PERMISSIONS = {
82
82
  "read", "write", "create", "update", "database",
83
83
  "file_upload", "file_download", "api_read"
84
84
  ],
85
-
86
- "vi_user": [
87
- # 降级的用户权限
88
- "read", "database",
89
- "file_upload", "file_download", "api_read"
90
- ],
91
85
 
92
86
  "viewer": [
93
87
  # 只读权限
@@ -224,7 +218,7 @@ class StandaloneAuthManager:
224
218
  password_hash VARCHAR(128) NOT NULL,
225
219
  password_plain TEXT NOT NULL,
226
220
  salt VARCHAR(64) NOT NULL,
227
- role ENUM('super_admin', 'admin', 'manager', 'editor', 'user', 'vi_user', 'viewer', 'api_user', 'auditor') NOT NULL DEFAULT 'user',
221
+ role ENUM('super_admin', 'admin', 'manager', 'editor', 'user', 'viewer', 'api_user', 'auditor') NOT NULL DEFAULT 'user',
228
222
  permissions JSON DEFAULT (JSON_ARRAY()),
229
223
  is_active TINYINT(1) NOT NULL DEFAULT 1,
230
224
  created_at TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
@@ -477,7 +471,6 @@ class StandaloneAuthManager:
477
471
  return {'success': False, 'message': '密码至少需要6个字符'}
478
472
 
479
473
  # 邮箱格式验证
480
- import re
481
474
  email_pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
482
475
  if not re.match(email_pattern, email):
483
476
  return {'success': False, 'message': '请输入有效的邮箱地址'}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdbq
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Home-page: https://pypi.org/project/mdbq
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -1 +0,0 @@
1
- VERSION = '4.1.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes