Use patch method to update has_valid_clone
@@ -700,9 +700,9 @@ class UpdateDocsTaskStep(SyncRepositoryMixin):
def set_valid_clone(self):
"""Mark on the project that it has been cloned properly."""
- project_data = api_v2.project(self.project.pk).get()
- project_data['has_valid_clone'] = True
- api_v2.project(self.project.pk).put(project_data)
+ api_v2.project(self.project.pk).patch(
+ {'has_valid_clone': True}
+ )
self.project.has_valid_clone = True
self.version.project.has_valid_clone = True
