From 0f70e53f46da54044e750e472767bf8a6ffd85d5 Mon Sep 17 00:00:00 2001 From: Blagovest Petrov Date: Sat, 5 Nov 2016 13:26:10 +0200 Subject: [PATCH] fixing int and string concatenation --- server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 2213415..e05120a 100644 --- a/server/server.py +++ b/server/server.py @@ -43,7 +43,7 @@ class TwitterApi(): feed = self.api.search(tag, count=20) timestamp = int(time.time()) 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()