|
@@ -23,7 +23,7 @@ class AccountServer(object):
|
|
|
self.params = params
|
|
|
self.AT = ArticleDBTools(mysql_client)
|
|
|
|
|
|
- def request_for_nlp(self, title_list, account_interest, account_weight):
|
|
|
+ async def request_for_nlp(self, title_list, account_interest, account_weight):
|
|
|
"""
|
|
|
nlp process
|
|
|
"""
|
|
@@ -111,7 +111,7 @@ class AccountServer(object):
|
|
|
method=self.interest_type,
|
|
|
rate=self.rate
|
|
|
)
|
|
|
- response = self.request_for_nlp(
|
|
|
+ response = await self.request_for_nlp(
|
|
|
title_list=self.title_list,
|
|
|
account_interest=account_interest,
|
|
|
account_weight=account_weight,
|