Skip to content

Commit

Permalink
Merge pull request #379 from keillera/ALIS-4127
Browse files Browse the repository at this point in the history
Fix bug that tip_value is ignore.
  • Loading branch information
hayago authored Aug 21, 2019
2 parents 382a532 + cf122e9 commit 0971c24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/es_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def search_recent_articles(elasticsearch, params, limit, page):
"topic",
"tags",
"version",
"price"
"price",
"tip_value"
],
'from': limit * (page - 1),
'size': limit
Expand Down
2 changes: 2 additions & 0 deletions tests/handlers/articles/recent/test_articles_recent.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def setUpClass(cls):
'sort_key': 1565579800000003,
'topic': 'fashion',
'price': 300,
'tip_value': 500,
'user_id': 'test_user_id',
'title': 'test_title',
'overview': 'test_overview',
Expand Down Expand Up @@ -125,6 +126,7 @@ def test_main_ok(self):
'sort_key': 1565579800000003,
'topic': 'fashion',
'price': 300,
'tip_value': 500,
'user_id': 'test_user_id',
'title': 'test_title',
'overview': 'test_overview',
Expand Down

0 comments on commit 0971c24

Please sign in to comment.