From 96e7cc1634477c9d510b9f9734e25fb56646cc64 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Wed, 19 Mar 2025 15:53:47 -0400 Subject: [PATCH] minor output compatibility fixes - suppress "None" in api page - show yes/no for dist repo flag --- www/kojiweb/templates/api.html.j2 | 2 +- www/kojiweb/templates/repoinfo.html.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/kojiweb/templates/api.html.j2 b/www/kojiweb/templates/api.html.j2 index 0e1f9ac6..a828b5ca 100644 --- a/www/kojiweb/templates/api.html.j2 +++ b/www/kojiweb/templates/api.html.j2 @@ -28,7 +28,7 @@ except koji.GenericError: #for method in methods
  • {{ method['name'] ~ method['argdesc'] }}
    -  {{ method['doc'] }}
    +  {{ method['doc'] if method['doc'] is not none else '' }}
          
  • #endfor diff --git a/www/kojiweb/templates/repoinfo.html.j2 b/www/kojiweb/templates/repoinfo.html.j2 index c31f2b95..cfcd284f 100644 --- a/www/kojiweb/templates/repoinfo.html.j2 +++ b/www/kojiweb/templates/repoinfo.html.j2 @@ -15,7 +15,7 @@ URLrepodata Repo jsonrepo.json {%- endif %} - Dist repo?{{ repo.dist }} + Dist repo?{{ 'yes' if repo.dist else 'no' }} Number of buildroots: {{ numBuildroots }} {% else %}