mirror of
https://github.com/gavanfantom/jlc-chart.git
synced 2026-09-16 17:50:54 +01:00
9 lines
261 B
Python
9 lines
261 B
Python
from werkzeug.routing import BaseConverter
|
|
|
|
class ListConverter(BaseConverter):
|
|
def to_python(self, value):
|
|
return value.split('+')
|
|
|
|
def to_url(self, values):
|
|
return '+'.join(super(ListConverter, self).to_url(value) for value in values)
|