Skip to content

Commit

Permalink
#RNA-489 - Do not show features where stop is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Mar 1, 2024
1 parent 90f5af8 commit 4da4c5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rnacentral/apiv1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,9 +777,9 @@ class SequenceFeaturesAPIViewSet(generics.ListAPIView):
def get_queryset(self):
upi = self.kwargs["pk"]
taxid = self.kwargs["taxid"]
features = SequenceFeature.objects.filter(upi=upi, taxid=taxid).exclude(
feature_name__in=["modification", "rfam_hit"]
)
features = SequenceFeature.objects.filter(
upi=upi, taxid=taxid, stop__gt=0
).exclude(feature_name__in=["modification", "rfam_hit"])
# create list of anticodon ids to remove all but 1
anticodon_ids = features.filter(feature_name="anticodon").values_list(
"pk", flat=True
Expand Down

0 comments on commit 4da4c5b

Please sign in to comment.