Created
May 2, 2018 08:42
-
-
Save gbozee/cb516b022ba4fbc865905fc38702c5b5 to your computer and use it in GitHub Desktop.
Sample Question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/aggregated-measurements') | |
def get_aggregated_measurements(): | |
aggregated_measurements_objects = AggregatedMeasurement.query.first() | |
# this is where the breakpoint would be | |
import pdb; pdb.set_trace() | |
# transforming into JSON-serializable objects | |
aggregated_measurement_schema = AggregatedMeasurementSchema() | |
result = aggregated_measurement_schema.dump(aggregated_measurements_objects) | |
return jsonify(result.data) | |
/* | |
Your server should pause by the time the break point is hit and you can check if the variable is set | |
pdb> aggregated_measurements | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment