leadguru-jobs 0.433.0__py3-none-any.whl → 0.435.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: leadguru_jobs
3
- Version: 0.433.0
3
+ Version: 0.435.0
4
4
  Summary: LGT jobs builds
5
5
  Author-email: developer@leadguru.co
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -39,11 +39,11 @@ lgt_jobs/lgt_data/engine.py,sha256=iTcLvU7QZvB14hcERQrxSql9cVEcMEzu_tUcWD2Z24A,8
39
39
  lgt_jobs/lgt_data/enums.py,sha256=A5nWwBgTVW7XaqL30NHNmO0SG_yeDk1dI-U5xrgU2zg,1552
40
40
  lgt_jobs/lgt_data/helpers.py,sha256=58ycqKF1z5nAw0vs6yVCg-SQet107YHyKYXaQUc7M68,157
41
41
  lgt_jobs/lgt_data/model.py,sha256=4J3WpmnIJ6pNWnSnZFQUnnyeZutDRGP2B3j0JzHdXww,28044
42
- lgt_jobs/lgt_data/mongo_repository.py,sha256=84QkEhXiTzGTD4dv4osTfP5OGJaDCyUHicUSm_kDn2o,39869
42
+ lgt_jobs/lgt_data/mongo_repository.py,sha256=WVmtsTFPepaRSdK0dYzJudSPaEOeVksI2I_4XI_JVow,39931
43
43
  lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  lgt_jobs/services/web_client.py,sha256=NdVK1Xl8IDqUDZKqYNq219WOO7DtLj3b4VFjP69_MQY,2047
45
45
  lgt_jobs/templates/new_message_mail_template.html,sha256=82XdDPtmkJVUWUcZtgd8bv_9-viAG2WWOnf3AhR6PeY,3635
46
- leadguru_jobs-0.433.0.dist-info/METADATA,sha256=G_2mCqjTkVyN8J64XuCjuHEN5JzxHQQ-FiHQNilZfaw,1296
47
- leadguru_jobs-0.433.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
48
- leadguru_jobs-0.433.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
49
- leadguru_jobs-0.433.0.dist-info/RECORD,,
46
+ leadguru_jobs-0.435.0.dist-info/METADATA,sha256=mI_5ZS9SbsTL7bbWQODsKtI99l4t-OnxrAmHzWTEoK4,1296
47
+ leadguru_jobs-0.435.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
48
+ leadguru_jobs-0.435.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
49
+ leadguru_jobs-0.435.0.dist-info/RECORD,,
@@ -728,7 +728,7 @@ class BoardsMongoRepository(BaseMongoRepository):
728
728
  '$match': match
729
729
  },
730
730
  {
731
- '$unwind': {'path': '$statuses', 'preserveNullAndEmptyArrays': False}
731
+ '$unwind': {'path': '$statuses', 'preserveNullAndEmptyArrays': True}
732
732
  },
733
733
  {
734
734
  '$lookup': {
@@ -1081,7 +1081,8 @@ class ChatRepository(BaseMongoRepository):
1081
1081
 
1082
1082
  def upsert_messages(self, messages: list[dict]):
1083
1083
  if messages:
1084
- operations = [UpdateOne({"id": msg['id']}, {'$set': msg}, upsert=True) for msg in messages]
1084
+ operations = [UpdateOne({"id": msg['id'], "user_id": msg['user_id']},
1085
+ {'$set': msg}, upsert=True) for msg in messages]
1085
1086
  self.collection().bulk_write(operations)
1086
1087
 
1087
1088
  def delete_message(self, user_id: str, _id: str):