leadguru-jobs 0.661.0__py3-none-any.whl → 0.662.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.661.0.dist-info → leadguru_jobs-0.662.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.661.0.dist-info → leadguru_jobs-0.662.0.dist-info}/RECORD +5 -5
- lgt_jobs/lgt_data/mongo_repository.py +3 -0
- {leadguru_jobs-0.661.0.dist-info → leadguru_jobs-0.662.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.661.0.dist-info → leadguru_jobs-0.662.0.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,7 @@ lgt_jobs/lgt_data/engine.py,sha256=GY8FOl3dl7euKjQRML_H3ophaSTgfQ8ICMRv1NpE2oE,7
|
|
42
42
|
lgt_jobs/lgt_data/enums.py,sha256=27Gd_o5QVCrSUMIfL0DJ72xV77T9fK0kYrOaC78O0SU,2292
|
43
43
|
lgt_jobs/lgt_data/helpers.py,sha256=S_1P7pnx14dllmen-TzjA9pkKWQr39x8-v6iv7FUYnQ,423
|
44
44
|
lgt_jobs/lgt_data/model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
-
lgt_jobs/lgt_data/mongo_repository.py,sha256=
|
45
|
+
lgt_jobs/lgt_data/mongo_repository.py,sha256=rnXKvILBVsGQteGesCecKQs55ZuPQCEchlZbw25zgjc,55919
|
46
46
|
lgt_jobs/lgt_data/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
lgt_jobs/lgt_data/models/base.py,sha256=YaiceCaaF45snOLx-bQoYJ1aTWrfgMQeHWjAaRnzGKE,592
|
48
48
|
lgt_jobs/lgt_data/models/boards/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -103,7 +103,7 @@ lgt_jobs/lgt_data/repositories/post/posts.py,sha256=ZA19L-CYdxLhlapyMQtSJzP3QMUl
|
|
103
103
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
104
104
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
105
105
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
106
|
-
leadguru_jobs-0.
|
107
|
-
leadguru_jobs-0.
|
108
|
-
leadguru_jobs-0.
|
109
|
-
leadguru_jobs-0.
|
106
|
+
leadguru_jobs-0.662.0.dist-info/METADATA,sha256=AGrqq7mNz9YVYCimis9LmbxxUIqIr2L6oU-a9XH7Iio,1319
|
107
|
+
leadguru_jobs-0.662.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
108
|
+
leadguru_jobs-0.662.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
109
|
+
leadguru_jobs-0.662.0.dist-info/RECORD,,
|
@@ -143,6 +143,7 @@ class UserMongoRepository(BaseMongoRepository):
|
|
143
143
|
include_inactive = kwargs.get('include_inactive', False)
|
144
144
|
email = kwargs.get('email')
|
145
145
|
search = kwargs.get('search')
|
146
|
+
name = kwargs.get('name')
|
146
147
|
sort_field = kwargs.get('sort_field', 'email')
|
147
148
|
sort_direction = kwargs.get('sort_direction', 'ASCENDING')
|
148
149
|
sort_direction = pymongo.ASCENDING if sort_direction == 'ASCENDING' else pymongo.DESCENDING
|
@@ -150,6 +151,8 @@ class UserMongoRepository(BaseMongoRepository):
|
|
150
151
|
match_pipeline['inactive'] = False
|
151
152
|
if email:
|
152
153
|
match_pipeline['email'] = email
|
154
|
+
if name:
|
155
|
+
match_pipeline['user_name'] = {'$regex': name, '$options': 'i'}
|
153
156
|
if search:
|
154
157
|
match_pipeline['email'] = {'$regex': search, '$options': 'i'}
|
155
158
|
pipeline.append({'$match': match_pipeline})
|
File without changes
|
File without changes
|