From fcf92ff3615d68f74db5a5cc804ff5957ebca31c Mon Sep 17 00:00:00 2001 From: Mahfouz Shehu Date: Thu, 2 May 2024 09:22:38 +0100 Subject: [PATCH] Update emgapianns/management/lib/create_or_update_study.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martín Beracochea --- emgapianns/management/lib/create_or_update_study.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/emgapianns/management/lib/create_or_update_study.py b/emgapianns/management/lib/create_or_update_study.py index df0603028..a355e9424 100644 --- a/emgapianns/management/lib/create_or_update_study.py +++ b/emgapianns/management/lib/create_or_update_study.py @@ -318,6 +318,4 @@ def verify_study_ownership(self, study_id, submission_account_id): } response = requests.get(url, headers=headers) ownership_verified = False - if response.status_code == 200 and study_id in response.text: - ownership_verified = True - return ownership_verified + return response.status_code == 200 and study_id in response.text