Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opening-hours
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
regionalkauf
opening-hours
Commits
bcb28c1f
Commit
bcb28c1f
authored
Jul 29, 2014
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed error on malformated cip codes
parent
6c7e902f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
blndRelDbRequest.js
lib/blndRelDbRequest.js
+2
-2
dateViewTest.js
test/dateViewTest.js
+1
-1
todo
todo
+0
-4
No files found.
lib/blndRelDbRequest.js
View file @
bcb28c1f
...
...
@@ -22,7 +22,7 @@ var blndMapping = {
var
connection
=
mysql
.
createConnection
(
config
[
"mysqlConfig"
]);
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
);
var
blnd
;
...
...
@@ -41,7 +41,7 @@ module.exports.getBundesland = 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
);
var
feiertag
;
try
{
...
...
test/dateViewTest.js
View file @
bcb28c1f
...
...
@@ -3,7 +3,7 @@ var dateArray = require('../lib/dateArray');
var
fs
=
require
(
'fs'
);
var
now
=
new
Date
(
2014
,
7
,
1
3
);
var
now
=
new
Date
(
2014
,
7
,
1
0
);
dateArray
(
dateView
.
getPropperEpochSpan
(
now
)).
getData
(
require
(
'../mochaTests/testData/testHof.json'
),
0
,
function
(
err
,
data
)
{
...
...
todo
View file @
bcb28c1f
...
...
@@ -9,7 +9,3 @@ saisonal,urlaub etc ueber neujahr? 23.12.2014 - 10.01.2015????
openNow auch nach absprache, nur mit json incl
evtl ical export
saturday, sunday class in weekview
weekview-3col
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment