Skip to content

Commit

Permalink
Update emgapianns/management/lib/create_or_update_study.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martín Beracochea <mbc@ebi.ac.uk>
  • Loading branch information
MGS-sails and mberacochea authored May 2, 2024
1 parent 2fe394c commit fcf92ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions emgapianns/management/lib/create_or_update_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fcf92ff

Please sign in to comment.