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
9a605846
Commit
9a605846
authored
Oct 02, 2015
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed holidays bug
parent
3e65fcb5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dateArray.js
lib/dateArray.js
+1
-1
dataBaseQuery.js
serverTest/dataBaseQuery.js
+2
-2
No files found.
lib/dateArray.js
View file @
9a605846
...
...
@@ -54,8 +54,8 @@ function wrapper(_epochSpan) {
var
holidayIntervals
=
holidays
.
map
(
function
(
date
)
{
return
tmUtils
.
singleDay
(
date
);
});
holidayIntervals
=
tmUtils
.
andOp
(
holidayIntervals
,
[
epochSpan
]);
tmUtils
.
sort
(
holidayIntervals
);
holidayIntervals
=
tmUtils
.
andOp
(
holidayIntervals
,
[
epochSpan
]);
try
{
var
ret
=
{
holidays
:
holidays
};
...
...
serverTest/dataBaseQuery.js
View file @
9a605846
...
...
@@ -8,7 +8,7 @@ var connection = mysql.createConnection({
host
:
'localhost'
,
user
:
'root'
,
password
:
'bla'
,
database
:
'
dev_regionalkauf_cms
'
database
:
'
regionalkauf
'
});
connection
.
connect
();
...
...
@@ -20,7 +20,7 @@ module.exports.getData = function (now, cb) {
// dateArray.setEpocheSpan(epocheSpan);
// connection.query('SELECT name, elements FROM cms_zoo_item WHERE type in ("pos", "company") ORDER BY id', function (err, rows) {
connection
.
query
(
'SELECT name, type, elements FROM cms_zoo_item WHERE id in (17
93
)'
,
function
(
err
,
rows
)
{
connection
.
query
(
'SELECT name, type, elements FROM cms_zoo_item WHERE id in (17
49
)'
,
function
(
err
,
rows
)
{
console
.
error
(
err
);
console
.
log
(
rows
.
length
);
var
result
=
[];
...
...
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