diff options
author | lltommy | 2020-04-29 16:48:19 +0200 |
---|---|---|
committer | lltommy | 2020-04-29 16:48:19 +0200 |
commit | c13c4d1a157d75d620f368775758c1e16c45c448 (patch) | |
tree | a039068ac9f05723c96f08296448e02241eb4479 /bh20simplewebuploader | |
parent | 5721e446df72d5563c7434bf1b583d3d0004cd09 (diff) | |
download | bh20-seq-resource-c13c4d1a157d75d620f368775758c1e16c45c448.tar.gz bh20-seq-resource-c13c4d1a157d75d620f368775758c1e16c45c448.tar.lz bh20-seq-resource-c13c4d1a157d75d620f368775758c1e16c45c448.zip |
fixing JS due to name changes so the demo works again
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r-- | bh20simplewebuploader/main.py | 8 | ||||
-rw-r--r-- | bh20simplewebuploader/static/main.js | 6 |
2 files changed, 11 insertions, 3 deletions
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 diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index 0f79fdf..96199a0 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -19,15 +19,15 @@ let search = () => { } let fetchSEQBySpecimen = () => { - fetchAPI("/api/getSEQbySpecimenSource"); + fetchAPI("/api/getSEQCountbySpecimenSource"); } let fetchSEQByLocation = () => { - fetchAPI("/api/getSEQbyLocation"); + fetchAPI("/api/getSEQCountbyLocation"); } let fetchSEQByTech = () => { - fetchAPI("/api/getSEQbytech"); + fetchAPI("/api/getSEQCountbytech"); } let fetchAllaccessions = () => { |