2019-08-14 16:42:56 Exception on /migrate/confidence/score/from/sqlite/to/pg/by/category/id [GET]
Traceback (most recent call last):
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/ubuntu/kwikee/projects/category_search/rest_api/category_controller.py", line 769, in migrate_brand_confidence_score
counter = dbs.migrate_brand_confidence_score()
File "/home/ubuntu/kwikee/projects/category_search/services/db_service.py", line 689, in migrate_brand_confidence_score
cs_brand_id = cs_item['brand_id']
TypeError: 'Confidence' object is not subscriptable