From 6bb6b5509bcffa881e9735ea9e7ff417e8c68479 Mon Sep 17 00:00:00 2001 From: Blagovest Petrov Date: Sun, 6 Nov 2016 09:24:17 +0200 Subject: [PATCH] Reverting changes from yesterday --- server/server.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/server.py b/server/server.py index 2598da7..f3cd101 100644 --- a/server/server.py +++ b/server/server.py @@ -36,15 +36,13 @@ class TwitterApi(): api = tweepy.API(auth) def send(self, tweet): - response = self.tweet[27:] - self.api.update_status(status=self.response) + self.api.update_status(status=tweet) def get_tweets_by_tag(self, tag): tweets = "" feed = self.api.search(tag, count=20) - timestamp = int(time.time()) for i in feed: - tweets = tweets + "0x7F0x7F0x7F0x7F" + str(timestamp) + "@" + i.user.screen_name + i.text + "\n" + tweets = tweets + i.user.screen_name + ": " + i.text + "\n" return tweets.encode('utf-8').strip()