__init__.py 文件源码

python
阅读 40 收藏 0 点赞 0 评论 0

项目:Locus 作者: senditya 项目源码 文件源码
def index():
    if request.method == 'GET':
        r = requests.get(lookupaddr+'/topiclist')
        topiclist = json.loads(r.content)
        return render_template('index.html', topiclist=topiclist)

    else:
        with lock:
            interest_list = request.form.getlist('adcat')
            sid = str(request.headers.get('sid'))
            client_dict[sid] = dict()
            for interest in interest_list:
                client_dict[sid][str(interest)] = dict()
            print interest_list
            return "subscribed!"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号