Skip to content
Snippets Groups Projects
Commit 73eecfb4 authored by Sabine Schröder's avatar Sabine Schröder
Browse files

accidentally uploaded sources with debugging print statements

parent 342c733c
No related branches found
No related tags found
No related merge requests found
Pipeline #58063 passed
......@@ -27,7 +27,6 @@ from io import StringIO
import csv
def get_data(db: Session, timeseries_id: int, format: str):
print("now in crud!")
data = db.query(models.Data).filter(models.Data.timeseries_id == timeseries_id).all()
if format == 'json':
return data
......
......@@ -33,7 +33,6 @@ def get_data(timeseries_id: int, format: str = 'json', db: Session = Depends(get
#get all data of one timeseries
@router.get('/data/id/{timeseries_id}', response_model=List[schemas.Data])
def get_data2(timeseries_id: int, format: str = 'json', db: Session = Depends(get_db)):
print("in data.py!")
db_data = crud.get_data(db, timeseries_id=timeseries_id, format=format)
if db_data is None:
raise HTTPException(status_code=404, detail="Data not found.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment