support ip_country field
This commit is contained in:
@@ -2,7 +2,9 @@ import pika
|
||||
|
||||
QUEUE_HOST = "appointment.lpaconsulting.fr"
|
||||
REQUEST_DATA_QUEUE = 'REQUEST_DATA'
|
||||
# REQUEST_DATA_QUEUE_TEST = 'REQUEST_DATA_TEST'
|
||||
REQUEST_DATA_QUEUE_TEST = 'REQUEST_DATA_TEST'
|
||||
REQUEST_DATA_QUEUE_DE = 'REQUEST_DATA_DE'
|
||||
credentials = pika.PlainCredentials('appointment', 'ZyuhJZ2xEYWhElhpJjy7YEpZGZwNYJz2fHIu')
|
||||
|
||||
|
||||
@@ -21,6 +23,7 @@ class CookiesPublisher:
|
||||
self.queue_method = self.channel.queue_declare(queue=self.to_queue, durable=True)
|
||||
|
||||
def publish_body(self, body: str):
|
||||
print("will push to queue {}".format(self.to_queue))
|
||||
self.channel.basic_publish(exchange='', routing_key=self.to_queue, body=body)
|
||||
|
||||
def message_count(self):
|
||||
|
||||
Reference in New Issue
Block a user