send json dict to mq
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-04-30 00:17:16 +02:00
parent e756ff614a
commit 2d36ed6991
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -79,7 +79,7 @@ class SampleResource(Resource):
rabbitmq_channel.basic_publish( rabbitmq_channel.basic_publish(
exchange=RABBITMQ_EXCHANGE, exchange=RABBITMQ_EXCHANGE,
routing_key='feature', routing_key='feature',
body=generated_tag) body=json.dumps({'tag': generated_tag}).encode('utf-8'))
except Exception as e: except Exception as e:
LOGGER.exception(e) LOGGER.exception(e)
db.session.rollback() db.session.rollback()