コード例 #1
0
ファイル: views.py プロジェクト: gorysko/roundup
def home(request):
    stats = roundup_util.getDatasetStats() # keys: numGenomes, numPairs, numOrthologs
    release = roundup_util.getRelease()
    releaseDate = roundup_util.getReleaseDate()
    kw = {'nav_id': 'home', 'release': release, 'release_date': releaseDate}
    kw.update(stats)
    return django.shortcuts.render(request, 'home.html', kw)
コード例 #2
0
ファイル: views.py プロジェクト: gorysko/roundup
def about(request):
    stats = roundup_util.getDatasetStats() # keys: numGenomes, numPairs, numOrthologs
    sourceUrls = roundup_util.getSourceUrls()
    release = roundup_util.getRelease()
    releaseDate = roundup_util.getReleaseDate()
    uniprotRelease = roundup_util.getUniprotRelease()
    # sources_html = roundup_util.getSourcesHtml()
    kw = {'nav_id': 'about', 'numGenomes': stats['numGenomes'], 'source_urls': sourceUrls,
          'release': release, 'release_date': releaseDate, 'uniprot_release': uniprotRelease}
    return django.shortcuts.render(request, 'about.html', kw)