summaryrefslogtreecommitdiff
path: root/packages/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils.py')
-rw-r--r--packages/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/utils.py b/packages/utils.py
index 5d0d0250..ab3c074f 100644
--- a/packages/utils.py
+++ b/packages/utils.py
@@ -11,7 +11,7 @@ from main.utils import cache_function, groupby_preserve_order, PackageStandin
from .models import (PackageGroup, PackageRelation,
SignoffSpecification, Signoff, DEFAULT_SIGNOFF_SPEC)
-@cache_function(300)
+@cache_function(127)
def get_group_info(include_arches=None):
raw_groups = PackageGroup.objects.values_list(
'name', 'pkg__arch__name').order_by('name').annotate(
@@ -92,7 +92,7 @@ class Difference(object):
return False
-@cache_function(300)
+@cache_function(127)
def get_differences_info(arch_a, arch_b):
# This is a monster. Join packages against itself, looking for packages in
# our non-'any' architectures only, and not having a corresponding package
@@ -381,7 +381,7 @@ SELECT DISTINCT p1.pkgbase, r.name
AND r.testing = %s
AND p2.repo_id IN (
"""
- sql += ','.join(['%s' for r in repos])
+ sql += ','.join(['%s' for _ in repos])
sql += ")"
params = [False, False]