Browse Source

Fixed object ownership problem

python-server
Blagovest Petrov 8 years ago
parent
commit
db2086d316
  1. 4
      server/server.py

4
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"

Loading…
Cancel
Save