diff options
Diffstat (limited to 'web-server/opendc/api/v2/traces/endpoint.py')
| -rw-r--r-- | web-server/opendc/api/v2/traces/endpoint.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/web-server/opendc/api/v2/traces/endpoint.py b/web-server/opendc/api/v2/traces/endpoint.py index 58cc6153..720c6a1e 100644 --- a/web-server/opendc/api/v2/traces/endpoint.py +++ b/web-server/opendc/api/v2/traces/endpoint.py @@ -1,14 +1,10 @@ -from opendc.models_old.trace import Trace +from opendc.models.trace import Trace from opendc.util.rest import Response def GET(request): """Get all available Traces.""" - # Get the Traces + traces = Trace.get_all() - traces = Trace.query() - - # Return the Traces - - return Response(200, 'Successfully retrieved Traces', [x.to_JSON() for x in traces]) + return Response(200, 'Successfully retrieved Traces', traces.obj) |
