Advertisement
kniven51

Untitled

Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. url
  2. @app.route('/save_both_scenarios', methods=['POST'])
  3.  
  4. expects:
  5. #the analysis_year and scenario_modeler_year are assigned if not given
  6. save_both_scenarios(userid,scenario_hash_historical,scenario_hash_current_year,scenario_name,opportunity,threat,confidence,reward_factor,analysis_year,scenario_modeler_year)
  7.  
  8. What it returns (example):
  9. #dictionary of dictorionaries
  10. {'current_year': {'scenario_status': 'cloned', 'updated_current_year_scenario_hash': 'ad8512bde3f5fda84508b7a65dde03c6'}, 'historical': {'scenario_status': 'cloned', 'updated_historical_scenario_hash': '17e4652f6366ec671488c181577e438f'}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement