Skip to content

Commit

Permalink
#73 hide annotation links when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok Saldanha authored and Alok Saldanha committed Mar 2, 2024
1 parent 1e02e0a commit 0000a60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cellxgene_gateway/filecrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
import html
import urllib.parse

from cellxgene_gateway import env, flask_util
from cellxgene_gateway import flask_util
from cellxgene_gateway.cache_key import CacheKey
from cellxgene_gateway.dir_util import annotations_suffix, make_annotations, make_h5ad
from cellxgene_gateway.env import enable_annotations


def render_annotations(item, item_source):
if not enable_annotations:
return ""
url = flask_util.view_url(
item_source.get_annotations_subpath(item), item_source.name
)
Expand Down

0 comments on commit 0000a60

Please sign in to comment.