#NEWLINE# @ app . route ( '/<username>/set_num_topics/<int:folder_id>' , methods = [ 'POST' ] ) #NEWLINE# def set_num_topics( username = None , folder_id = None ) : #NEWLINE# #INDENT# 'set the number of topics for a folder' #NEWLINE# v = request . form [ 'v' ] #NEWLINE# f = Folder . query . get ( folder_id ) #NEWLINE# ex = Experiment . query . get ( f . tm_id ) #NEWLINE# tm = ex . getExInfo ( ) #NEWLINE# tm . nTopics = int ( v ) #NEWLINE# set_tm_status ( username , folder_id , ex , 'idle' ) #NEWLINE# db . session . commit ( ) #NEWLINE# return Response ( status = '200' )