Skip to content

Commit 1277f4a

Browse files
authored
Merge pull request #8481 from readthedocs/humitos/artifacts-cleaned
Organization: only mark artifacts cleaned as False if they are True
2 parents b68a921 + 3eaed99 commit 1277f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/organizations/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def mark_organization_assets_not_cleaned(build_pk):
1919
return
2020

2121
organization = build.project.organizations.first()
22-
if organization:
22+
if organization and organization.artifacts_cleaned:
2323
log.info("Marking organization as not cleaned. organization=%s", organization.slug)
2424
organization.artifacts_cleaned = False
2525
organization.save()

0 commit comments

Comments
 (0)