From: vunhat_minh Date: Fri, 4 Jul 2014 03:10:35 +0000 (+0900) Subject: fix bug for favorited X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a0ac1b8adcc68a988361253581f6fa636f68274;p=rainbowstream.git fix bug for favorited --- diff --git a/.gitignore b/.gitignore index fc1666b..68d0a43 100644 --- a/.gitignore +++ b/.gitignore @@ -58,9 +58,14 @@ docs/_build/ # Editor *sublime* .tag* +*.swp* +*.swo* # Virtualenv /venv/* # History completer -completer.hist \ No newline at end of file +completer.hist + +# Consumer +rainbowstream/consumer.py diff --git a/rainbowstream/colorset/default.json b/rainbowstream/colorset/default.json index 9e0a6ab..3952c23 100644 --- a/rainbowstream/colorset/default.json +++ b/rainbowstream/colorset/default.json @@ -51,7 +51,7 @@ "nick" : "grey", "clock" : "grey", "id" : "grey", - "favourite" : "light_green", + "favorited" : "light_green", "rt" : "grey", "link" : "light_cyan", "keyword" : "on_light_yellow" @@ -85,4 +85,4 @@ "days": "grey", "today": "on_grey" } -} \ No newline at end of file +} diff --git a/rainbowstream/colorset/monokai.json b/rainbowstream/colorset/monokai.json index 50eafb9..7d9a7bf 100644 --- a/rainbowstream/colorset/monokai.json +++ b/rainbowstream/colorset/monokai.json @@ -26,7 +26,7 @@ "nick" : "term_112", "clock" : "term_57", "id" : "term_166", - "favourite" : "term_50", + "favorited" : "term_50", "rt" : "term_179", "link" : "term_74", "keyword" : "on_light_green" @@ -60,4 +60,4 @@ "days": "term_57", "today": "on_light_blue" } -} \ No newline at end of file +} diff --git a/rainbowstream/colorset/solarized.json b/rainbowstream/colorset/solarized.json index 5b85209..28c001d 100644 --- a/rainbowstream/colorset/solarized.json +++ b/rainbowstream/colorset/solarized.json @@ -26,7 +26,7 @@ "nick" : "term_64", "clock" : "term_32", "id" : "term_124", - "favourite" : "term_64", + "favorited" : "term_64", "rt" : "term_66", "link" : "term_23", "keyword" : "on_light_green" @@ -60,4 +60,4 @@ "days": "term_64", "today": "on_light_green" } -} \ No newline at end of file +} diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index bdeafdf..a3d2cd1 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -197,7 +197,7 @@ def draw(t, iot=False, keyword=None, fil=[], ig=[]): meta = color_func(c['TWEET']['clock'])( '[' + clock + '] ') + color_func(c['TWEET']['id'])('[id=' + str(rid) + '] ') if favorited: - meta = meta + color_func(c['TWEET']['favorite'])(u'\u2605') + meta = meta + color_func(c['TWEET']['favorited'])(u'\u2605') tweet = text.split() # Replace url if expanded_url: