From db2086d316fb2e195b39763a6535baa54e238710 Mon Sep 17 00:00:00 2001 From: Blagovest Petrov Date: Fri, 28 Oct 2016 16:50:01 +0300 Subject: [PATCH] Fixed object ownership problem --- server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.py b/server/server.py index b2aa277..c268f0c 100644 --- a/server/server.py +++ b/server/server.py @@ -34,8 +34,8 @@ class TwitterApi(): auth.set_access_token(config.twitter_conf['TW_ACCESS_TOKEN'], config.twitter_conf['TW_ACCESS_TOKEN_SECRET']) api = tweepy.API(auth) - def send(tweet): - api.update_status(tweet) + def send(self, tweet): + self.api.update_status(tweet) def get_tweets_by_tag(tag): print "NotImplemented"