Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logging.info("Recent fetched %d downloads for user %s."%(len(fics),user.nickname()))
try:
import bs4
logging.debug( "BS4 version: %s"%bs4.__version__)
import html5lib
logging.debug( "html5lib version: %s"%html5lib.__version__)
import html2text
logging.debug( "html2text version:")
logging.debug( html2text.__version__)
import chardet
logging.debug( "chardet version: %s"%chardet.__version__)
import six
logging.debug( "six version: %s"%six.__version__)
import webencodings
logging.debug( "webencodings version: %s"%webencodings.VERSION)
except:
pass
sendslugs = []
for fic in fics:
ficslug = FicSlug(fic)
sendslugs.append(ficslug)
template_values = dict(fics = sendslugs, nickname = user.nickname())
path = os.path.join(os.path.dirname(__file__), 'allrecent.html')
self.response.out.write(template.render(path, template_values))