leadguru-jobs 0.545.0__py3-none-any.whl → 0.546.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.545.0.dist-info → leadguru_jobs-0.546.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.545.0.dist-info → leadguru_jobs-0.546.0.dist-info}/RECORD +6 -6
- lgt_jobs/lgt_data/enums.py +2 -2
- lgt_jobs/lgt_data/mongo_repository.py +4 -10
- {leadguru_jobs-0.545.0.dist-info → leadguru_jobs-0.546.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.545.0.dist-info → leadguru_jobs-0.546.0.dist-info}/top_level.txt +0 -0
@@ -39,14 +39,14 @@ lgt_jobs/lgt_common/slack_client/web_client.py,sha256=JOW-VGYYGqFZgyoqjOZ3t_XUdZ
|
|
39
39
|
lgt_jobs/lgt_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
lgt_jobs/lgt_data/analytics.py,sha256=TFUffL8Dn-vIJ3ZaCVN-cj1Qnjb8F9GJyuk6Fo7mR1s,21645
|
41
41
|
lgt_jobs/lgt_data/engine.py,sha256=Rsbz-CApAo_TVDssdjBkv8v_fVOZm_Uh1S6W4fnaEWo,7728
|
42
|
-
lgt_jobs/lgt_data/enums.py,sha256=
|
42
|
+
lgt_jobs/lgt_data/enums.py,sha256=GZn6wm-kOd3veEOo1qlOR8QYje4vKaGV0na9jGt9388,2160
|
43
43
|
lgt_jobs/lgt_data/helpers.py,sha256=NDa-V5EYaJfkGoWsmQSwSe6N_jxNxs8tHRQzW1iST6k,480
|
44
44
|
lgt_jobs/lgt_data/model.py,sha256=DDfoWeH6rLWKoZsFJ2tI5Yagj1WlOa0PIJp-GqBIVSA,28112
|
45
|
-
lgt_jobs/lgt_data/mongo_repository.py,sha256=
|
45
|
+
lgt_jobs/lgt_data/mongo_repository.py,sha256=qqbt-oJ-RHmICLARgWvHuyPwVeKFkUqJZ2MA1bfIlXs,44762
|
46
46
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
lgt_jobs/services/web_client.py,sha256=GLWsJkIC8rv6xLFaLwcMm4EwBlVDu0njORwkZqBJaE4,2086
|
48
48
|
lgt_jobs/templates/new_message.html,sha256=BD_E90akmQ1Wf07wtZAjeK_7DUKRmja5HFHVo_AKI24,6994
|
49
|
-
leadguru_jobs-0.
|
50
|
-
leadguru_jobs-0.
|
51
|
-
leadguru_jobs-0.
|
52
|
-
leadguru_jobs-0.
|
49
|
+
leadguru_jobs-0.546.0.dist-info/METADATA,sha256=IWNYd7KvvxOxUUCq4AtUk6Kqg4id5_GJ-y8Oz5mLQEQ,1319
|
50
|
+
leadguru_jobs-0.546.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
51
|
+
leadguru_jobs-0.546.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
52
|
+
leadguru_jobs-0.546.0.dist-info/RECORD,,
|
lgt_jobs/lgt_data/enums.py
CHANGED
@@ -61,12 +61,12 @@ class BotEventType(str, Enum):
|
|
61
61
|
|
62
62
|
class ImageName(str, Enum):
|
63
63
|
ARROW = 'arrow.png'
|
64
|
+
CRY = 'cry.png'
|
64
65
|
FIREWORK = 'firework.png'
|
66
|
+
HANDS = 'hands.png'
|
65
67
|
LOCK = 'lock.png'
|
66
68
|
LOGO = 'logo.png'
|
67
69
|
MAIL = 'mail.png'
|
68
|
-
CRY = 'cry.png'
|
69
|
-
HANDS = 'hands.png'
|
70
70
|
SAD = 'sad.png'
|
71
71
|
|
72
72
|
|
@@ -831,16 +831,10 @@ class DedicatedBotRepository(BaseMongoRepository):
|
|
831
831
|
docs = self.collection().find(pipeline)
|
832
832
|
return [DedicatedBotModel.from_dic(doc) for doc in docs]
|
833
833
|
|
834
|
-
def get_source_ids_for_user(self,
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
}, {
|
839
|
-
'_id': 0,
|
840
|
-
'source_id': '$source.source_id'
|
841
|
-
})
|
842
|
-
source_ids = [item['source_id'] for item in docs]
|
843
|
-
return source_ids
|
834
|
+
def get_source_ids_for_user(self, **kwargs):
|
835
|
+
pipeline = self.__create_bots_filter(**kwargs)
|
836
|
+
docs = self.collection().find(pipeline, projection={'_id': 0, 'source_id': '$source.source_id'})
|
837
|
+
return [item['source_id'] for item in docs]
|
844
838
|
|
845
839
|
def get_one(self, **kwargs):
|
846
840
|
pipeline = self.__create_bots_filter(**kwargs)
|
File without changes
|
File without changes
|