Skip to content
Snippets Groups Projects
Commit ae73b1b5 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

000_COUNTRIES-Array mit Leerstring zuvorderst

parent 001c234e
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,8 @@ ...@@ -72,6 +72,8 @@
}, },
"type": "object", "type": "object",
"propertyOrder": 30, "propertyOrder": 30,
"defaultProperties": [
],
"properties": { "properties": {
"Pressure": { "Pressure": {
"type": "object", "type": "object",
......
# Rolf Niepraschk, 2017-09-17, Rolf.Niepraschk@ptb.de # Rolf Niepraschk, 2017-10-09, Rolf.Niepraschk@ptb.de
local : local :
putdoc deploy http://localhost:5984/vl_db putdoc deploy http://localhost:5984/vl_db
...@@ -8,5 +8,5 @@ server : ...@@ -8,5 +8,5 @@ server :
.PHONY : deploy .PHONY : deploy
# curl http://localhost:5984/vl_db/_design/editor-schema/_list/getSchema/all000?sel=000_SCHEMA-cob # curl http://localhost:5984/vl_db/_design/editor-schema/_list/getSchema/all000?schema=000_SCHEMA-cob
# curl http://localhost:5984/vl_db/_design/editor-schema/_view/all000 # curl http://localhost:5984/vl_db/_design/editor-schema/_view/all000
...@@ -24,8 +24,8 @@ function(head, req) { ...@@ -24,8 +24,8 @@ function(head, req) {
ret = []; ret = [];
switch (doc) { switch (doc) {
case '000_COUNTRIES': case '000_COUNTRIES':
ret = Object.keys(obj.Countries); ret=[''].concat(Object.keys(obj.Countries));
break break;
case '000_DEVICETYPES': case '000_DEVICETYPES':
src = obj.DeviceTypes; src = obj.DeviceTypes;
for (var i=0; i<src.length; i++) { for (var i=0; i<src.length; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment