(short_code)
return link if link is None else formatted_link_stats(link)
Get short link stats
Get short link stats
Get short link stats
def link_stats(short_code):
    """Get short link stats"""
    manager = LinkManager()
    short_code = short_code.strip('+')
    link = manager.get_by_code(short_code=short_code)
    return link if link is None else formatted_link_stats(link)
def link_stats ( short_code ) : manager = LinkManager ( ) short_code = short_code . strip ( '+' ) link = manager . get_by_code ( short_code = short_code ) return link if link is None else formatted_link_stats ( link )