Skip to content

Commit

Permalink
Remove envs
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Jan 27, 2023
1 parent 29a8a73 commit 5222322
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

1 change: 0 additions & 1 deletion .env.dev

This file was deleted.

1 change: 0 additions & 1 deletion .env.prod

This file was deleted.

5 changes: 2 additions & 3 deletions app/api/netcdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from app.processing.netcdfs_processing import get_netcdf_from_point as get_netcdf
import json

env = json.load(open(".env"))
router = APIRouter()


Expand All @@ -26,9 +25,9 @@ def get_netcdf_from_point(
"""
ds = get_netcdf(longitude, latitude, filepath, start_date, end_date)
unique_filename = str(uuid.uuid4())
ds.to_netcdf("{0}/{1}.nc".format(env["tmp_folder"], unique_filename))
ds.to_netcdf("/tmp/{0}.nc".format(unique_filename))
return FileResponse(
"{0}/{1}.nc".format(env["tmp_folder"], unique_filename),
"/tmp/{0}.nc".format(unique_filename),
media_type="application/x-netcdf",
filename="data.nc",
)

0 comments on commit 5222322

Please sign in to comment.