From c13c4d1a157d75d620f368775758c1e16c45c448 Mon Sep 17 00:00:00 2001 From: lltommy Date: Wed, 29 Apr 2020 16:48:19 +0200 Subject: fixing JS due to name changes so the demo works again --- bh20simplewebuploader/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bh20simplewebuploader/main.py') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 6ca9a78..126b8dd 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -197,6 +197,14 @@ def generate_form(schema, options): record['type'] = 'number' # Choose a reasonable precision for the control record['step'] = '0.0001' + + ### This is to fix the homepage for the moment ## needs more love though + # implementation of the [] stuff instead of just text fields + ## ToDo - implement lists + elif field_type == 'string[]': + record['type'] = 'text' + elif field_type == 'float[]': + record['type'] = 'text' else: raise NotImplementedError('Unimplemented field type {} in {} in metadata schema'.format(field_type, type_name)) yield record -- cgit v1.2.3