Skip to content

Commit

Permalink
Made version parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Jan 31, 2025
1 parent d3e0731 commit 8e2591f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agr_literature_service/api/crud/dataset_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def delete_dataset(db: Session, mod_abbreviation: str, data_type: str, dataset_t


def download_dataset(db: Session, mod_abbreviation: str, data_type: str,
dataset_type: str, version: int) -> DatasetSchemaDownload:
dataset_type: str, version: int = None) -> DatasetSchemaDownload:
dataset = get_dataset(db, mod_abbreviation, data_type, dataset_type, version)
if not dataset:
raise HTTPException(status_code=404, detail="Dataset not found")
Expand Down

0 comments on commit 8e2591f

Please sign in to comment.