Files
HowBadIsMyBatch/src/HtmlUtils.py
2023-04-12 17:17:32 +02:00

11 lines
327 B
Python

def getBatchcodes(batchCodeTable):
return batchCodeTable['Batch'].dropna().unique()
def getBatchcodeOptions(batchcodes):
return [_getBatchcodeOption(batchcode) for batchcode in batchcodes]
def _getBatchcodeOption(batchcode):
return '<option value="{batchcode}">{batchcode}</option>'.format(batchcode=batchcode)