For the last time, you can't delete with a subquery on the same table!
This commit is contained in:
parent
a241c176d6
commit
c352050b07
1 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||||
|
|
Reference in a new issue