leadguru-jobs 0.422.0__py3-none-any.whl → 0.423.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.422.0
3
+ Version: 0.423.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=z8Ffzq8d_1cfVyKik15tKUnlGC_11IqqoffM2xjngV0,39701
42
+ lgt_jobs/lgt_data/mongo_repository.py,sha256=fOBWpJTeYGfiSa-T2k8VwjMIf1qhei83lsRvLndAC78,39840
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.422.0.dist-info/METADATA,sha256=grjQHKp7NZ5NqiM0FNyKzquAzFivmJsA6BY9q02AAZQ,1296
47
- leadguru_jobs-0.422.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
48
- leadguru_jobs-0.422.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
49
- leadguru_jobs-0.422.0.dist-info/RECORD,,
46
+ leadguru_jobs-0.423.0.dist-info/METADATA,sha256=ZSISGXyKOuSaOtg7TSfWLlDiGYmtAmRz6BG8G8qNjao,1296
47
+ leadguru_jobs-0.423.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
48
+ leadguru_jobs-0.423.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
49
+ leadguru_jobs-0.423.0.dist-info/RECORD,,
@@ -1082,3 +1082,6 @@ class ChatRepository(BaseMongoRepository):
1082
1082
  def upsert_messages(self, messages: list[dict]):
1083
1083
  operations = [UpdateOne({"id": msg['id']}, {'$set': msg}, upsert=True) for msg in messages]
1084
1084
  self.collection().bulk_write(operations)
1085
+
1086
+ def delete_message(self, user_id: str, _id: str):
1087
+ self.collection().delete_one({"id": _id, 'user_id': to_object_id(user_id)})