Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test_json = [
- {
- 'name' : 'image1',
- 'schemeResponce' : "rewfr",
- },
- {
- 'name' : 'image2',
- 'schemeResponce' : "srfrefw",
- },
- {
- 'name' : 'image3',
- 'schemeResponce' : "ifbrefivber",
- }
- ]
- json_data = request.json
- print(scheme_name, file=sys.stdout)
- print(json_data, file=sys.stdout)
- for step in test_json:
- print(step["schemeResponce"])
- db.session.query(Step, Scheme).filter(Step.scheme_id == Scheme.id).\
- filter(Scheme.name == scheme_name, Step.name == step["name"]).update({"schemeResponce": step["schemeResponce"]})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement