From 9ddfbd372b6e0396a978f8d3318926ccf753e6a6 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 9 Dec 2017 16:49:53 +0100 Subject: [PATCH] Remove extra space in tweets --- pgweb/news/management/commands/twitter_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/news/management/commands/twitter_post.py b/pgweb/news/management/commands/twitter_post.py index 32ffb385..d6d35d61 100644 --- a/pgweb/news/management/commands/twitter_post.py +++ b/pgweb/news/management/commands/twitter_post.py @@ -35,7 +35,7 @@ class Command(BaseCommand): for a in articles: # We hardcode 30 chars for the URL shortener. And then 10 to cover the intro and spacing. - statusstr = u"News: {0} - {1}/about/news/{2}/".format(a.title[:140-40], settings.SITE_ROOT, a.id) + statusstr = u"News: {0} {1}/about/news/{2}/".format(a.title[:140-40], settings.SITE_ROOT, a.id) r = tw.post('https://api.twitter.com/1.1/statuses/update.json', data={ 'status': statusstr, }) -- 2.39.5