Produce charts of component availability at JLCPCB from a BOM
Mirrored from https://github.com/gavanfantom/jlc-chart
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
248 B
9 lines
248 B
3 years ago
|
from werkzeug.routing import BaseConverter
|
||
|
|
||
|
class ListConverter(BaseConverter):
|
||
|
def to_python(self, value):
|
||
|
return value.split('+')
|
||
|
|
||
|
def to_url(self, values):
|
||
|
return '+'.join(BaseConverter.to_url(value) for value in values)
|