Commit d7053155 authored by carlosribas's avatar carlosribas
Browse files

Update backend to remove PSICQUIC from Annotations table

parent f486d411
......@@ -188,6 +188,7 @@ class Rna(CachingMixin, models.Model):
def get_xrefs(self, taxid=None):
"""Get all xrefs, show non-ENA annotations first."""
xrefs = self.xrefs.filter(deleted='N', upi=self.upi)\
.exclude(accession__accession__startswith='PSICQUIC')\
.order_by('-db__id')\
.select_related()\
.prefetch_related(
......
......@@ -129,8 +129,6 @@ var xrefs = {
for (var x = 0; x < results.length; x++) {
if (results[x].database == "GeneCards") {
to_append.push(results[x]);
} else if (results[x].database === "PSICQUIC") {
/* do not add PSICQUIC to results */
} else {
new_results.push(results[x]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment