diff --git a/apis/contributor.py b/apis/contributor.py index b43b82a1..6d479a49 100644 --- a/apis/contributor.py +++ b/apis/contributor.py @@ -117,7 +117,7 @@ def put(self, study_id: int, user_id: int): @api.response(200, "Success") @api.response(400, "Validation Error") def delete(self, study_id: int, user_id: str): - study =model.Study.query.get(study_id) + study = model.Study.query.get(study_id) if not study: return "study is not found", 404 granter = model.StudyContributor.query.filter( @@ -193,7 +193,8 @@ def put(self, study_id: int, user_id: int): ).first() existing_contributor.permission = "owner" existing_owner = model.StudyContributor.query.filter( - model.StudyContributor.study == study, model.StudyContributor.permission == "owner" + model.StudyContributor.study == study, + model.StudyContributor.permission == "owner", ).first() existing_owner.permission = "admin"