feat: implement PATCH dataset route

At the moment only allows for the updating of the name. Which seems to be the only editable part of dataset metadata.
This commit is contained in:
2026-03-04 21:38:06 +00:00
parent 4f01bf0419
commit 64e3f9eea8
2 changed files with 29 additions and 0 deletions

View File

@@ -145,6 +145,10 @@ class DatasetManager:
return result[0]
def update_dataset_name(self, dataset_id: int, new_name: str):
query = "UPDATE datasets SET name = %s WHERE id = %s"
self.db.execute(query, (new_name, dataset_id))
def delete_dataset_info(self, dataset_id: int):
query = "DELETE FROM datasets WHERE id = %s"