leadguru-jobs 0.466.0__py3-none-any.whl → 0.467.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.466.0
3
+ Version: 0.467.0
4
4
  Summary: LGT jobs builds
5
5
  Author-email: developer@leadguru.co
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -41,14 +41,14 @@ lgt_jobs/lgt_common/slack_client/web_client.py,sha256=oZV7oUcSXXngfMI6oXDedlQWeP
41
41
  lgt_jobs/lgt_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  lgt_jobs/lgt_data/analytics.py,sha256=qo5nNFQxOTTk8i3tmCq0d3F9iaV9MTIR84SSi6uNrJ8,23427
43
43
  lgt_jobs/lgt_data/engine.py,sha256=OkTIIsVhb4o0dcDOzolb-NNTftzhJvsCuldxg1PvLUM,8113
44
- lgt_jobs/lgt_data/enums.py,sha256=3ZwuOL5tHKjBdmiXa_hXIleH6Ls-zkxvR_ne2Rajaq0,1801
44
+ lgt_jobs/lgt_data/enums.py,sha256=nkcJQTIAuJCC9xe928KNsplRUJ43du7K8kAUFGMAbPY,1896
45
45
  lgt_jobs/lgt_data/helpers.py,sha256=58ycqKF1z5nAw0vs6yVCg-SQet107YHyKYXaQUc7M68,157
46
46
  lgt_jobs/lgt_data/model.py,sha256=YGpIsN33xoOGaGCyHwlXWGE1HvCE0eynOhmJAswN7Ug,29141
47
- lgt_jobs/lgt_data/mongo_repository.py,sha256=-iu2v6TyRFOS8g6aPeCPzheO3h-eJQTSBrfuCm5ePF8,44645
47
+ lgt_jobs/lgt_data/mongo_repository.py,sha256=RLIKrIYjY2jv4ENaxBSy6QVKEiuoJA6fqHv9AmlFT2Y,43634
48
48
  lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  lgt_jobs/services/web_client.py,sha256=NdVK1Xl8IDqUDZKqYNq219WOO7DtLj3b4VFjP69_MQY,2047
50
- lgt_jobs/templates/new_message.html,sha256=SNVFWnq1goVrtaTJpbEru-8vYOav1wz31z8r01hAZI8,6985
51
- leadguru_jobs-0.466.0.dist-info/METADATA,sha256=TXYqs7u0PNS-wh3DmPMAQfj3Vu7wTojM8K8we44CBys,1319
52
- leadguru_jobs-0.466.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
53
- leadguru_jobs-0.466.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
54
- leadguru_jobs-0.466.0.dist-info/RECORD,,
50
+ lgt_jobs/templates/new_message.html,sha256=I3J6YPz-uhGbGnuGc5d7Hxj0X4VzOtT8PqrQQGPJfc4,7002
51
+ leadguru_jobs-0.467.0.dist-info/METADATA,sha256=uOwnTWY1NARLNhmWxMlJJptxaNGCjlGIKtcMWI1OaTQ,1319
52
+ leadguru_jobs-0.467.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
53
+ leadguru_jobs-0.467.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
54
+ leadguru_jobs-0.467.0.dist-info/RECORD,,
@@ -80,3 +80,9 @@ class ImageName(str, Enum):
80
80
  LOCK = 'lock.png'
81
81
  LOGO = 'logo.png'
82
82
  MAIL = 'mail.png'
83
+
84
+
85
+ class FeaturesEnum(str, Enum):
86
+ FEED = 'Feed'
87
+ LEADS = 'Leads'
88
+ TARGETS = 'Targets'
@@ -81,9 +81,6 @@ class UserMongoRepository(BaseMongoRepository):
81
81
  include_inactive = kwargs.get('include_inactive', False)
82
82
  email = kwargs.get('email')
83
83
  search = kwargs.get('search')
84
- sort_field = kwargs.get('sort_field', 'email')
85
- sort_direction = kwargs.get('sort_direction', 'ASCENDING')
86
- sort_direction: int = pymongo.ASCENDING if sort_direction == 'ASCENDING' else pymongo.DESCENDING
87
84
  if not include_inactive:
88
85
  match_pipeline['inactive'] = False
89
86
  if email:
@@ -91,30 +88,7 @@ class UserMongoRepository(BaseMongoRepository):
91
88
  if search:
92
89
  match_pipeline['email'] = {'$regex': search, '$options': 'i'}
93
90
  pipeline.append({'$match': match_pipeline})
94
- pipeline.extend([
95
- {
96
- '$lookup': {
97
- 'from': 'user_track_action',
98
- 'as': 'user_actions',
99
- 'let': {'user_id': '$_id'},
100
- 'pipeline': [
101
- {
102
- '$match': {'$expr': {'$eq': ['$user_id', '$$user_id']}}
103
- },
104
- {
105
- '$sort': {'created_at': -1}
106
- }
107
- ]
108
- }
109
- },
110
- {
111
- '$addFields': {'last_action_at': {'$first': '$user_actions.created_at'}}
112
- },
113
- {
114
- '$unset': ['user_actions', 'slack_users', 'discord_users']
115
- }
116
- ])
117
- pipeline.append({'$sort': {sort_field: sort_direction}})
91
+ pipeline.append({'$sort': {'created_at': -1}})
118
92
  pipeline.extend([{'$facet': {'page': [{'$skip': skip}, {'$limit': limit}], 'count': [{'$count': 'count'}]}},
119
93
  {'$project': {'page': 1, 'count': {'$first': "$count.count"}}}])
120
94
  return UsersPage.from_dic(list(self.collection().aggregate(pipeline))[0])
@@ -55,7 +55,7 @@
55
55
  style="border: 0; padding: 0; margin: 0 40px; max-width: 370px;">
56
56
  <tr>
57
57
  <td style="text-align: left; padding: 0 0 20px; margin: 0; font-size: 14px; line-height: 24px; font-weight: 400; color: #262730">
58
- <b>$$USER_NAME$$</b> has just sent you a message on Leadguru
58
+ <b>$$USER_NAME$$</b> sent you message on Leads portal
59
59
  </td>
60
60
  </tr>
61
61
  </table>
@@ -81,7 +81,7 @@
81
81
  box-sizing: border-box;
82
82
  background-color: #3579F6;
83
83
  padding: 8px 18px 8px 20px;">View message
84
- <img style="margin: 2px 0 0 12px; width: 16px; height: 16px;"
84
+ <img style="margin: 0 0 -3px 6px; width: 20px; height: 20px;"
85
85
  src="{{ IMAGE_ARROW.src }}"
86
86
  alt="">
87
87
  </a>
@@ -96,11 +96,11 @@
96
96
  style="border: 0; margin: 0 40px; padding-bottom: 40px">
97
97
  <tr>
98
98
  <td style="padding: 20px 0 0; border-top: 1px solid #E9EBF0; margin: 0; font-size: 14px; line-height: 20px; color: #778198; text-align: left; font-weight: 400">
99
- Check out our
99
+ Need help? Check out our
100
100
  <a style="color: #3579F6; text-decoration: none;"
101
101
  href="https://leadguru.co/features/"
102
102
  target="_blank" >Knowledge Base</a>
103
- or book a call with us.
103
+ or book the onboarding call with us!
104
104
  </td>
105
105
  </tr>
106
106
  </table>