We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee618b5 commit 21b2b1aCopy full SHA for 21b2b1a
1 file changed
src/vfbquery/vfb_queries.py
@@ -537,9 +537,12 @@ def term_info_parse_object(results, short_form):
537
538
if template_numeric != channel_numeric:
539
print(f"Warning: Template ID {template_id} does not match channel ID {channel_id}")
540
+ label = vfbTerm.template_channel.channel.label
541
+ record["id"] = channel_id
542
+ else:
543
+ label = vfbTerm.term.core.label
544
+ record["id"] = template_id
545
- record["id"] = template_id
- label = vfbTerm.template_channel.channel.label
546
if vfbTerm.template_channel.channel.symbol != "" and len(vfbTerm.template_channel.channel.symbol) > 0:
547
label = vfbTerm.template_channel.channel.symbol
548
record["label"] = label
0 commit comments