open-data / ckanext-recombinant

Create datastore tables for organizations and provide combined output
Other
5 stars 8 forks source link

Hyphenated Org Names Breaks Template Route for Flask View #111

Open JVickery-TBS opened 1 year ago

JVickery-TBS commented 1 year ago

Having hyphens in the organization name breaks the flask mapping for the template view function:

@recombinant.route('/recombinant-template/<dataset_type>_<lang>_<owner_org>.xlsx', methods=['GET', 'POST'])

I suppose hyphens in the lang and the dataset_type would also cause issues here too, in theory.

wardi commented 1 year ago

doctor, it hurts when I do this