update So 21. Jun 19:31:01 CEST 2020

This commit is contained in:
Robert Richter 2020-06-21 19:31:01 +02:00
parent cda10efd58
commit d7c5c2cd95
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ app_cfg.global = {
database: './database.sqlite3',
soundpath: '/public/media/',
mediapath: '/media/',
time_to_delete_waip: 1,
time_to_delete_waip: 4,
default_time_for_standby: 10,
circumcircle: 5,
defaultuser: 'me',

View File

@ -206,8 +206,8 @@ module.exports = function (db, app_cfg) {
) em1 ON em1.waip_einsaetze_id = e.ID
LEFT JOIN (
SELECT waip_einsaetze_id, \'[\' || group_concat(\'{\"name\": \"\' || einsatzmittel || \'\", \"zeit\": \"\' || zeitstempel || \'\"}\') || \']\' AS em_weitere
FROM waip_einsatzmittel WHERE waip_einsaetze_id = ? and waip_wachen_id not in (
select id from waip_wachen where nr_wache like ?||\'%\')
FROM waip_einsatzmittel WHERE waip_einsaetze_id = ? and (waip_wachen_id not in (
select id from waip_wachen where nr_wache like ?||\'%\') or waip_wachen_id is null)
GROUP BY waip_einsaetze_id
) em0 ON em0.waip_einsaetze_id = e.ID
WHERE e.id LIKE ?