from wrpylib.wrvalidators import rodelbahnbox_from_template, tristate_german_to_str, difficulty_german_to_str, \
avalanches_german_to_str, public_transport_german_to_str, opt_lonlat_from_str, \
opt_uint_from_str
+from wrpylib.lib_sledrun_wikitext_to_json import optional_set, get_sledrun_description
docuReplacements = {'¶ms;': pagegenerators.parameterHelp}
"entry_under_construction": sum(1 for c in wikilink_list if c.text == 'Kategorie:In Arbeit') > 0,
}
- for v in wikicode.get_sections(levels=[2], matches='Allgemeines'):
- for w in v.ifilter_text(recursive=False):
- x = w.strip()
- if x:
- sledrun_json["description"] = str(x)
- break
- break
+ optional_set(sledrun_json, 'description', get_sledrun_description(wikicode))
rbb_list = wikicode.filter_templates(recursive=False, matches=lambda t: t.name.strip() == 'Rodelbahnbox')
if len(rbb_list) == 1: