Skip to content

Commit

Permalink
Fix broken query
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc authored and dsotirho-ucsc committed Nov 30, 2022
1 parent c7bf7da commit 25864f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/azul/plugins/repository/tdr_anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ def _downstream_from_files(self,
rows = self._run_sql(f'''
WITH activities AS (
SELECT
ala.alignmentactivity_id,
'alignmentactivity',
ala.alignmentactivity_id AS activity_id,
'alignmentactivity' AS activity_table,
ala.used_file_id,
ala.generated_file_id
FROM {backtick(self._full_table_name(source, 'alignmentactivity'))} AS ala
Expand All @@ -435,7 +435,7 @@ def _downstream_from_files(self,
KeyReference(key=file_id, entity_type='file')
for file_id in row['generated_file_id']
],
activity=KeyReference(key=row['actvity_id'], entity_type=row['activity_table']))
activity=KeyReference(key=row['activity_id'], entity_type=row['activity_table']))
for row in rows
}
else:
Expand Down

0 comments on commit 25864f6

Please sign in to comment.