Skip to content

Commit

Permalink
glamr/tables: fix the uniref100 column in exported readabundance data
Browse files Browse the repository at this point in the history
Take into account that the FK field can be referred to by the field name
or the attname.
  • Loading branch information
robert102 committed Nov 22, 2024
1 parent 0132f58 commit fe6a325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mibios/glamr/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def get_export_fields(self, columns):
"""
field_names = []
for i in super().get_export_fields():
if i == 'ref_id':
if i == 'ref' or i == 'ref_id':
# adds a join, but almost each row will have a distinct uniref,
# so probably better than prefetch/caching
field_names.append('ref__accession')
Expand Down

0 comments on commit fe6a325

Please sign in to comment.