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

@@ -60,13 +60,13 @@ class InternalBaseDocument(Document):
60
60
  original_model = self.model_copy(deep=True)
61
61
  delta_dict = schema
62
62
  if issubclass(type(schema), BaseModel):
63
- delta_dict = schema.model_dump(exclude_unset=True)
63
+ delta_dict = schema.model_dump(exclude_unset=True, mode="json")
64
64
 
65
65
  for key, value in delta_dict.items():
66
66
  if hasattr(self, key):
67
67
  setattr(self, key, value)
68
68
 
69
- operate = await Operate.generate_operate(original_model.model_dump(), self.model_dump())
69
+ operate = await Operate.generate_operate(original_model.model_dump(mode="json"), self.model_dump(mode="json"))
70
70
  if not operate.add and not operate.remove and not operate.change:
71
71
  raise NoChangeException()
72
72
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.84
3
+ Version: 1.0.85
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -30,10 +30,10 @@ internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8r
30
30
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  internal/middleware/log_request.py,sha256=bXAxmvvsYDhObXzfUw4ZNreKAWOo8ee_vpb6Xin5ztc,854
32
32
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- internal/model/base_model.py,sha256=fu7jIF8sUWG6c-tRbT6nAHfFk8MTcCvTNHXF53TK3Z4,4053
33
+ internal/model/base_model.py,sha256=Td2F--Beji6BGvJmHBNjE0Y2usAR3Co7i6JLDn7DvhM,4088
34
34
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
35
35
  internal/utils.py,sha256=CXYZs4rDDe33Zac27YeknBE4uQN437ys1YAbW3Xeyow,1517
36
36
  internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
37
- internal-1.0.84.dist-info/METADATA,sha256=bsnUqDuNwyTxxeXeAqyMU8YGrQGYv8_NSWHAOwyKDpw,663
38
- internal-1.0.84.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
39
- internal-1.0.84.dist-info/RECORD,,
37
+ internal-1.0.85.dist-info/METADATA,sha256=xQfCAzirJsU-b7dJqe-OyY11CBmnekzO2tr1oPYSXq0,663
38
+ internal-1.0.85.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
39
+ internal-1.0.85.dist-info/RECORD,,