The UFZ services GitLab and Mattermost will be unavailable on Monday, December 06 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 2e028436 authored by David Schäfer's avatar David Schäfer
Browse files

removed dead code

parent c3f6002a
......@@ -61,23 +61,6 @@ func (db *DataBase) GetSensorDataLevel1(projectId, sensorId, start, limit int, s
)
}
func (db *DataBase) joinSensors(projectId, loggerId int, data *[]dataModel) (*[]dataModel, error) {
sensors, err := db.GetSensorsByLoggerID(projectId, loggerId, 0, math.MaxInt64)
if err != nil {
return data, err
}
lut := map[int]SensorModel{}
for _, row := range *sensors {
lut[row.ID] = row
}
for _, row := range *data {
sensor := lut[row.SensorID]
row.SensorName = sensor.Name
row.SensorLabel = sensor.Label
}
return data, nil
}
func (db *DataBase) GetLoggerDataLevel1Cached(projectId, loggerId, start, limit int, startDate, endDate time.Time) (*L1Data, error) {
// join the sensor information manually, to safe database cycles
sensors, err := db.GetSensorsByLoggerID(projectId, loggerId, 0, math.MaxInt64)
......
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