Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ranker error #25

Open
gogasca opened this issue Nov 28, 2019 · 0 comments
Open

Ranker error #25

gogasca opened this issue Nov 28, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gogasca
Copy link
Owner

gogasca commented Nov 28, 2019

[2019-11-25 06:01:01,697: ERROR/MainProcess] Task rank_news[6394a707-d8dc-4d26-94ac-21111cb68763] raised unexpected: TypeError("'<' not supported between instances of 'list' and 'int'",)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/local/src/news_ml/main/appD.py", line 89, in rank_news
    ranker_instance.rank_articles()
  File "/usr/local/src/news_ml/services/ranking/RankerD.py", line 107, in rank_articles
    self.sorted_articles = sort_articles(self.articles)
  File "/usr/local/src/news_ml/services/ranking/ranker.py", line 185, in sort_articles
    if articles < 1:
TypeError: '<' not supported between instances of 'list' and 'int'
@gogasca gogasca self-assigned this Nov 28, 2019
@gogasca gogasca added the bug Something isn't working label Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant