openwebrx-clone/owrx/form/receiverid.py
Jakob Ketterl 2d72055070 organize
2021-02-08 20:30:12 +01:00

11 lines
304 B
Python

from owrx.form.converter import Converter
class ReceiverKeysConverter(Converter):
def convert_to_form(self, value):
return "\n".join(value)
def convert_from_form(self, value):
# \r\n or \n? this should work with both.
return [v.strip("\r ") for v in value.split("\n")]