maps = [ (x[1], x[2]) for x in maps
if x[0] == "map" or x[0] == "silent-map" ]
s = [suite]
- for x in maps:
- if x[1] in s and x[0] not in s:
- s.append(x[0])
+ for (from_, to) in maps:
+ if from_ in s and to not in s:
+ s.append(to)
q = q.filter(DBSource.suites.any(Suite.suite_name.in_(s)))
# The following tables have primary keys but sqlalchemy
# version 0.5 fails to reflect them correctly with database
# versions before upgrade #41.
- #'changes',
- #'build_queue_files',
+ 'changes',
+ 'build_queue_files',
)
tables_no_primary = (
'suite_build_queue_copy',
'udeb_contents',
# see the comment above
- 'changes',
- 'build_queue_files',
+ #'changes',
+ #'build_queue_files',
)
views = (