Error !

TypeError: '<' not supported between instances of 'str' and 'NoneType'

175

176
        %if ebook_status_counts:
177
        <p><b>eBook status:</b>
178
        %for status_name, status_count in sorted(ebook_status_counts.items()):
179
        <span class="label label-default">${status_name}: ${status_count}</span>
180
        %endfor
181
        </p>
182
        %endif
183
        %if audio_status_counts and CONFIG.get_int('AUDIO_TAB') > 0:
/app/lazylibrarian/data/interfaces/bookstrap/author_detail.html, line 178:
178
        %for status_name, status_count in sorted(ebook_status_counts.items()):
/app/lazylibrarian/data/interfaces/bookstrap/base.html, line 288:
288
        ${next.body()}
/lsiopy/lib/python3.12/site-packages/mako/runtime.py, line 936:
936
callable_(context, *args, **kwargs)
/lsiopy/lib/python3.12/site-packages/mako/runtime.py, line 909:
909
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/lsiopy/lib/python3.12/site-packages/mako/runtime.py, line 867:
867
_render_context(
/lsiopy/lib/python3.12/site-packages/mako/template.py, line 443:
443
return runtime._render(self, self.callable_, args, data)
/app/lazylibrarian/lazylibrarian/webServe.py, line 489:
489
return template.render(perm=perm, pref=userprefs, style=style, **kwargs)