internal 1.1.39.4__py3-none-any.whl → 1.1.41__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.

Potentially problematic release.


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

@@ -44,7 +44,9 @@ class InternalBaseDocument(Document):
44
44
  else:
45
45
  print(f"order type value error: temp_sort:{temp_sort}")
46
46
  continue
47
- final_sort.append((cls.id, pymongo.ASCENDING))
47
+
48
+ if not any(s[0] == str(cls.id) for s in sort):
49
+ final_sort.append((cls.id, pymongo.ASCENDING))
48
50
 
49
51
  if exclude_field_list:
50
52
  # 當需要排除欄位時,使用 Motor 直接操作
@@ -141,7 +143,9 @@ class InternalBaseDocument(Document):
141
143
  else:
142
144
  print(f"order type value error: temp_sort:{temp_sort}")
143
145
  continue
144
- final_sort.append((cls.id, pymongo.ASCENDING))
146
+
147
+ if not any(s[0] == str(cls.id) for s in sort):
148
+ final_sort.append((cls.id, pymongo.ASCENDING))
145
149
 
146
150
  if exclude_field_list:
147
151
  # 當需要排除欄位時,使用 Motor 直接操作
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.1.39.4
3
+ Version: 1.1.41
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -31,10 +31,10 @@ internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8r
31
31
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  internal/middleware/log_request.py,sha256=ZtCyfrF3IyKTF6Uj8L66CutdZi3srVmppqO_EXT5Tuw,3035
33
33
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- internal/model/base_model.py,sha256=2M9EUWitzG-5FD4tYbUULBcWL6045HfS6OkpwzevmsY,7892
34
+ internal/model/base_model.py,sha256=-YlVPZGuG926PksyQw5SgKjkdC80q_eQTL3EnzVSfIs,8020
35
35
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
36
36
  internal/utils.py,sha256=dVhKi3WPXQzVjaIGZBdfNjkMYtE7O-vKeyyOSX4mTG0,4518
37
37
  internal/validator_utils.py,sha256=CqjaVFoAu5MqvBG_AkTP-r7AliWawtUWB851USj4moI,1519
38
- internal-1.1.39.4.dist-info/METADATA,sha256=j0gJufxymwJld35ELosysiBdkVivOvAuqzu8nshxgtI,941
39
- internal-1.1.39.4.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
40
- internal-1.1.39.4.dist-info/RECORD,,
38
+ internal-1.1.41.dist-info/METADATA,sha256=Z2yv-pszFA4IbgjeWkBwpuNyMHyDtv3XYV-w2DgnM3U,939
39
+ internal-1.1.41.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
40
+ internal-1.1.41.dist-info/RECORD,,