Browse Source

fixing int and string concatenation

master
Blagovest Petrov 8 years ago
parent
commit
0f70e53f46
  1. 2
      server/server.py

2
server/server.py

@ -43,7 +43,7 @@ class TwitterApi():
feed = self.api.search(tag, count=20) feed = self.api.search(tag, count=20)
timestamp = int(time.time()) timestamp = int(time.time())
for i in feed: for i in feed:
tweets = tweets + " 0x7F0x7F0x7F0x7F " + timestamp + " @" + i.user.screen_name + " " + i.text + "\n" tweets = tweets + " 0x7F0x7F0x7F0x7F " + str(timestamp) + " @" + i.user.screen_name + " " + i.text + "\n"
return tweets.encode('utf-8').strip() return tweets.encode('utf-8').strip()

Loading…
Cancel
Save