ianalmore

This commit is contained in:
Luke Rogers 2013-12-02 23:10:08 +13:00
parent 1e22ca4995
commit be3df6718f
2 changed files with 5 additions and 12 deletions

View file

@ -1,4 +1,4 @@
from util import hook, http, web
from util import hook, http, web, text
import time
import random
@ -79,7 +79,7 @@ def plugin_details(slug):
def format_output(data):
""" takes plugin data and returns two strings representing information about that plugin """
name = data["plugin_name"]
description = data['description']
description = text.truncate_str(data['description'], 30)
url = data['website']
authors = data['authors'][0]
authors = authors[0] + u"\u200b" + authors[1:]