Commit 570fabf7 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Add function for update ML data

parent 6d0b97d3
...@@ -60,8 +60,9 @@ class ExaPipeline(object): ...@@ -60,8 +60,9 @@ class ExaPipeline(object):
publish_date, record_date, company_id, is_accepted, temp_tags, tags_id, text) publish_date, record_date, company_id, is_accepted, temp_tags, tags_id, text)
VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);\n""" VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);\n"""
self.db.insert(query, data) news = self.db.insert(query, data)
self.add_url_to_block(item['url']) self.add_url_to_block(item['url'])
self.update_ml_data(news, item['tags'])
def check_url(self, url): def check_url(self, url):
''' '''
...@@ -103,3 +104,5 @@ class ExaPipeline(object): ...@@ -103,3 +104,5 @@ class ExaPipeline(object):
return None return None
return json.dumps(tags) return json.dumps(tags)
def update_ml_data(self, news, tags):
pass
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment