From 8064419715cb347800ddcd08e8ea552c3f77cabe Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 3 Jun 2016 13:06:57 -0400 Subject: [PATCH] Remove Image join from get_active_tag It isn't used anywhere in the query and appears to be completely unnecessary --- data/model/tag.py | 1 - 1 file changed, 1 deletion(-) diff --git a/data/model/tag.py b/data/model/tag.py index a1e1610e6..59b82327c 100644 --- a/data/model/tag.py +++ b/data/model/tag.py @@ -246,7 +246,6 @@ def store_tag_manifest(namespace, repo_name, tag_name, docker_image_id, manifest def get_active_tag(namespace, repo_name, tag_name): return _tag_alive(RepositoryTag .select() - .join(Image) .join(Repository) .join(Namespace, on=(Repository.namespace_user == Namespace.id)) .where(RepositoryTag.name == tag_name, Repository.name == repo_name,