Commit 37306fd4 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Fix writing to DB

parent 578921cb
......@@ -78,5 +78,7 @@ class ExaPipeline(object):
tags = list()
for i in self.classifier.teg_accordance:
tags.append(i[0])
if len(tags) == 0:
return None
return json.dumps(tags)
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