leadguru-jobs 0.402.0__py3-none-any.whl → 0.404.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.
- {leadguru_jobs-0.402.0.dist-info → leadguru_jobs-0.404.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.402.0.dist-info → leadguru_jobs-0.404.0.dist-info}/RECORD +5 -5
- lgt_jobs/lgt_data/model.py +6 -2
- {leadguru_jobs-0.402.0.dist-info → leadguru_jobs-0.404.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.402.0.dist-info → leadguru_jobs-0.404.0.dist-info}/top_level.txt +0 -0
@@ -38,12 +38,12 @@ lgt_jobs/lgt_data/analytics.py,sha256=qo5nNFQxOTTk8i3tmCq0d3F9iaV9MTIR84SSi6uNrJ
|
|
38
38
|
lgt_jobs/lgt_data/engine.py,sha256=iTcLvU7QZvB14hcERQrxSql9cVEcMEzu_tUcWD2Z24A,8076
|
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
|
-
lgt_jobs/lgt_data/model.py,sha256=
|
41
|
+
lgt_jobs/lgt_data/model.py,sha256=qX0_wa2GjTn5MgbnQMUh5m2WgojK2n2BpRKRK_1cb0c,28581
|
42
42
|
lgt_jobs/lgt_data/mongo_repository.py,sha256=tn_G-ZVOiQXanQ_L7dYeh7ftg6KK1ngyMRhMOrZq-ho,36012
|
43
43
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
lgt_jobs/services/web_client.py,sha256=D3y5KVVBk7mesRnsiByx4tFmNbfTOKOUoIp3VCHuk0I,1983
|
45
45
|
lgt_jobs/templates/new_message_mail_template.html,sha256=82XdDPtmkJVUWUcZtgd8bv_9-viAG2WWOnf3AhR6PeY,3635
|
46
|
-
leadguru_jobs-0.
|
47
|
-
leadguru_jobs-0.
|
48
|
-
leadguru_jobs-0.
|
49
|
-
leadguru_jobs-0.
|
46
|
+
leadguru_jobs-0.404.0.dist-info/METADATA,sha256=cHVAeob7IjWRuqgptUOp12miTs0YUeD6rOtfrCo_ilI,1296
|
47
|
+
leadguru_jobs-0.404.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
48
|
+
leadguru_jobs-0.404.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
49
|
+
leadguru_jobs-0.404.0.dist-info/RECORD,,
|
lgt_jobs/lgt_data/model.py
CHANGED
@@ -523,9 +523,9 @@ class BotInfo:
|
|
523
523
|
self.id = None
|
524
524
|
self.invalid_creds: bool | None = False
|
525
525
|
self.source = None
|
526
|
-
self.banned: bool | None
|
526
|
+
self.banned: bool | None = False
|
527
527
|
self.user_name: str = ''
|
528
|
-
self.associated_user: str | None
|
528
|
+
self.associated_user: str | None = ''
|
529
529
|
|
530
530
|
@classmethod
|
531
531
|
def from_dic(cls, dic: dict):
|
@@ -684,6 +684,7 @@ class ExtendedUserLeadModel(UserLeadModel):
|
|
684
684
|
super().__init__()
|
685
685
|
self.contact: SlackMemberInformation | None = None
|
686
686
|
self.previous_publications = []
|
687
|
+
self.bots: List[BotInfo] = []
|
687
688
|
|
688
689
|
@classmethod
|
689
690
|
def from_dic(cls, dic: dict):
|
@@ -883,6 +884,7 @@ class SlackTimeZone:
|
|
883
884
|
class ExtendedSlackMemberInformation(SlackMemberInformation):
|
884
885
|
previous_publications = []
|
885
886
|
name: str = None
|
887
|
+
bots: List[BotInfo] = []
|
886
888
|
|
887
889
|
@classmethod
|
888
890
|
def from_dic(cls, dic: dict):
|
@@ -891,6 +893,7 @@ class ExtendedSlackMemberInformation(SlackMemberInformation):
|
|
891
893
|
return None
|
892
894
|
|
893
895
|
model.previous_publications = [LeadModel.from_dic(lead) for lead in dic.get('previous_publications', [])]
|
896
|
+
model.bots = [BotInfo.from_dic(bot) for bot in dic.get('bots', [])]
|
894
897
|
return model
|
895
898
|
|
896
899
|
@staticmethod
|
@@ -929,6 +932,7 @@ class ExtendedSlackMemberInformation(SlackMemberInformation):
|
|
929
932
|
lead.chat_viewed_at = datetime.now(UTC)
|
930
933
|
lead.chat_history = []
|
931
934
|
lead.previous_publications = contact.previous_publications if hasattr(contact, "previous_publications") else []
|
935
|
+
lead.bots = contact.bots if hasattr(contact, "bots") else []
|
932
936
|
lead.contact = contact
|
933
937
|
return lead
|
934
938
|
|
File without changes
|
File without changes
|