Commit bda4d974 authored by Manas Gabani's avatar Manas Gabani

default state code by mistake in schools trend removed

parent a5f5ed7e
......@@ -214,7 +214,7 @@ def get_trend_for_schools():
main_dimension = form_value_to_main_dimension_mapping[request.form['type']]
state_code = int(request.form['state_code'])
trend_schools = "img/trend_{}_{}.jpeg".format(request.form['type'], state_code)
total_enrolment_by_category(os.path.join(app.config['UPLOAD_FOLDER'], trend_schools), final_df, main_dimension, state_code=default_state_code, ylabel='Number of Schools')
total_enrolment_by_category(os.path.join(app.config['UPLOAD_FOLDER'], trend_schools), final_df, main_dimension, state_code, ylabel='Number of Schools')
return render_template('schools.html', trend_schools=trend_schools, distribution_schools_by_category=distribution_schools_by_category, distribution_rural_schools_by_category=distribution_rural_schools_by_category, schools_by_category_summary=schools_by_category_summary, rural_schools_by_category_summary=rural_schools_by_category_summary, school_category=school_category, rural_school_category=rural_school_category)
@app.route('/get_distribution_of_schools_by_category', methods=['POST'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment