For the last time, you can't delete with a subquery on the same table!

This commit is contained in:
Jake Moshenko 2015-11-19 16:43:35 -05:00
parent a241c176d6
commit c352050b07

View file

@ -143,7 +143,7 @@ def garbage_collect_tags(repo):
if len(tags_to_delete) > 0: if len(tags_to_delete) > 0:
with db_transaction(): with db_transaction():
manifests_to_delete = (TagManifest manifests_to_delete = list(TagManifest
.select(TagManifest.id) .select(TagManifest.id)
.join(RepositoryTag) .join(RepositoryTag)
.where(RepositoryTag.id << tags_to_delete)) .where(RepositoryTag.id << tags_to_delete))