def get_source_by_name(nick):
nick = nick.lower()
conf = click.get_current_context().obj["conf"]
if nick == conf.nick and conf.twturl:
return conf.source
return next((source for source in conf.following if nick == source.nick), None)
评论列表
文章目录