Commit bcb28c1f authored by Johannes Bill's avatar Johannes Bill

fixed error on malformated cip codes

parent 6c7e902f
...@@ -22,7 +22,7 @@ var blndMapping = { ...@@ -22,7 +22,7 @@ var blndMapping = {
var connection = mysql.createConnection(config["mysqlConfig"]); var connection = mysql.createConnection(config["mysqlConfig"]);
module.exports.getBundesland = function(plz, cb) { module.exports.getBundesland = function(plz, cb) {
connection.query("SELECT bundesland FROM postleitzahlen WHERE plz = " + plz, function (err, result) { connection.query("SELECT bundesland FROM postleitzahlen WHERE plz = '" + plz + "'", function (err, result) {
if (err) return cb(err); if (err) return cb(err);
var blnd; var blnd;
...@@ -41,7 +41,7 @@ module.exports.getBundesland = function(plz, cb) { ...@@ -41,7 +41,7 @@ module.exports.getBundesland = function(plz, cb) {
}; };
module.exports.getKatholisch = function(plz, cb) { module.exports.getKatholisch = function(plz, cb) {
connection.query("SELECT feiertag FROM relHoliday WHERE plz = " + plz, function (err, result) { connection.query("SELECT feiertag FROM relHoliday WHERE plz = '" + plz + "'", function (err, result) {
if (err) return cb(err); if (err) return cb(err);
var feiertag; var feiertag;
try { try {
......
...@@ -3,7 +3,7 @@ var dateArray = require('../lib/dateArray'); ...@@ -3,7 +3,7 @@ var dateArray = require('../lib/dateArray');
var fs = require('fs'); var fs = require('fs');
var now = new Date(2014, 7, 13); var now = new Date(2014, 7, 10);
dateArray(dateView.getPropperEpochSpan(now)).getData(require('../mochaTests/testData/testHof.json'), 0, function(err, data) { dateArray(dateView.getPropperEpochSpan(now)).getData(require('../mochaTests/testData/testHof.json'), 0, function(err, data) {
......
...@@ -9,7 +9,3 @@ saisonal,urlaub etc ueber neujahr? 23.12.2014 - 10.01.2015???? ...@@ -9,7 +9,3 @@ saisonal,urlaub etc ueber neujahr? 23.12.2014 - 10.01.2015????
openNow auch nach absprache, nur mit json incl openNow auch nach absprache, nur mit json incl
evtl ical export evtl ical export
saturday, sunday class in weekview
weekview-3col
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment