Skip to content

Commit

Permalink
ENT-3533 Get the jobs according to date (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamanafzal authored Oct 21, 2020
1 parent fa36f7c commit 478b1f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
--------------------

[1.1.1] - 2020-10-20
--------------------

* Updating skills-jobs data's query.

[1.1.0] - 2020-09-30
--------------------
Expand Down
2 changes: 1 addition & 1 deletion taxonomy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Your project description goes here.
"""

__version__ = '1.1.0'
__version__ = '1.1.1'

default_app_config = 'taxonomy.apps.TaxonomyConfig' # pylint: disable=invalid-name
15 changes: 6 additions & 9 deletions taxonomy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,23 @@
Constants used by the taxonomy connector.
"""

from datetime import date

from dateutil.relativedelta import relativedelta

JOBS_QUERY_FILTER = {
'filter': {
'when': {
'start': '2020-01',
'end': '2020-06',
'start': str(date.today() - relativedelta(months=6)),
'end': str(date.today()),
'type': 'active'
},
'posting_duration': {
'lower_bound': 0,
'upper_bound': 90
}
},
'rank': {
'by': 'unique_postings',
'min_unique_postings': 1000,
'limit': 20
},
'nested_rank': {
'by': 'significance',
'limit': 10
}
}

Expand Down

0 comments on commit 478b1f4

Please sign in to comment.