From cccc25d553526b0b7fdf7e093a91f189ffad7fd6 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Mon, 23 Dec 2013 18:45:51 -0500 Subject: [PATCH] Switch back to is.gd --- karmaworld/apps/notes/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/karmaworld/apps/notes/tasks.py b/karmaworld/apps/notes/tasks.py index 16cb438..aa631be 100644 --- a/karmaworld/apps/notes/tasks.py +++ b/karmaworld/apps/notes/tasks.py @@ -43,8 +43,8 @@ def tweet_note(): def tweet_string(note): - # This url will use 12 or less characters - shortener = gdshortener.VGDShortener() + # This url will use 13 or less characters + shortener = gdshortener.ISGDShortener() url = "https://www.karmanotes.org" + \ note.get_absolute_url() short_url = shortener.shorten(url)[0] @@ -63,7 +63,7 @@ def tweet_string(note): # space and colon characters # 57 characters - short_note = note.name[:58] + short_note = note.name[:57] return short_url + " #" + short_school + " " + \ short_course + ": " + \ -- 2.25.1