خرید بک لینک

Vote count: 0

the following is my code for get method:

def get(self, ques_no, i):
    j=i
    opt_dict = {}
    for ques in session.query(Options.optn).filter(Options.q_no == ques_no)[j:j+2]:
        opt_dict.update({i:ques.optn})
        i=i+1
    retu jsonify(opt_dict)            

api.add_resource(store_option, '/option/&&', endpoint = 'option_id')

i need to pass to arguments to my get method to access the database. but i'm not able pass to arguments. how can i do that?? any help will be appreciated..

asked 3 mins ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 12 اسفند 1394 ساعت: 10:52

صفحه بندی