From ca38f369f7ee2ecf55161da24797fb150a7f34b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=20=D0=93=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=BA=D0=B8=D1=85?= Date: Fri, 4 Oct 2019 10:15:07 +0300 Subject: [PATCH] Fix --- apps/rating/send.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 apps/rating/send.py diff --git a/apps/rating/send.py b/apps/rating/send.py deleted file mode 100644 index 06e5daff..00000000 --- a/apps/rating/send.py +++ /dev/null @@ -1,14 +0,0 @@ -from pika import BlockingConnection, ConnectionParameters - - -def mess(): - connection = BlockingConnection(ConnectionParameters('rabbitmq')) - channel = connection.channel() - - channel.queue_declare(queue='rating') - channel.basic_publish( - exchange='', - routing_key='rating', - body='{news_id:127.0.0.1}' - ) - connection.close() \ No newline at end of file