diff --git a/hive/indexer/tags.py b/hive/indexer/tags.py index be5a92479baeb5616dc9ec94a5ef37df4321148d..f60165cda35aa972fa679bae4958a7d12a879ce9 100644 --- a/hive/indexer/tags.py +++ b/hive/indexer/tags.py @@ -28,9 +28,10 @@ class Tags(object): for tag in cls._tags: values.append("('{}')".format(escape_characters(tag[1]))) sql += ",".join(values) - sql += " ON CONFLICT DO NOTHING;" + sql += " ON CONFLICT DO NOTHING" + DB.query(sql) - sql += """ + sql = """ INSERT INTO hive_post_tags (post_id, tag_id) VALUES