Skip to content

Commit

Permalink
Merge pull request #357 from uhh-lt/Typo-CRUDPreprocessing
Browse files Browse the repository at this point in the history
Typo in Errorhandling
  • Loading branch information
floschne authored Feb 14, 2024
2 parents 1273734 + edf480b commit 3fdee2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/app/core/data/crud/preprocessing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CRUDPreprocessingJob(
def read(self, db: Session, uuid: str) -> PreprocessingJobORM:
db_obj = db.query(self.model).filter(self.model.id == uuid).first()
if db_obj is None:
raise NoSuchElementError(self.model, id=id)
raise NoSuchElementError(self.model, id=uuid)
return db_obj

def read_by_ids(self, db: Session, uuids: List[str]) -> List[PreprocessingJobORM]:
Expand Down Expand Up @@ -51,7 +51,7 @@ def read_ids_by_proj_id_and_status(
def get_status_by_id(self, db: Session, uuid: str) -> BackgroundJobStatus:
db_str_obj = db.query(self.model.status).filter(self.model.id == uuid).scalar()
if not db_str_obj:
raise NoSuchElementError(self.model, id=id)
raise NoSuchElementError(self.model, id=uuid)
return BackgroundJobStatus(db_str_obj)

def get_number_of_running_or_waiting_payloads(self, db: Session, uuid: str) -> int:
Expand Down

0 comments on commit 3fdee2d

Please sign in to comment.