mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
feat:#51 added TR fix for room mapping
This commit is contained in:
@@ -45,7 +45,7 @@ func GetRoomScheduleForDay(app *pocketbase.PocketBase, room string, date string)
|
||||
func GetRoomSchedule(app *pocketbase.PocketBase, room string, from string, to string, mapped string) ([]model.AnonymizedEventDTO, error) {
|
||||
|
||||
if mapped == "true" {
|
||||
room = functions.MapRoom(room)
|
||||
room = functions.MapRoom(room, false)
|
||||
}
|
||||
|
||||
roomSchedule, err := db.GetRoomSchedule(app, room, from, to)
|
||||
@@ -57,7 +57,7 @@ func GetRoomSchedule(app *pocketbase.PocketBase, room string, from string, to st
|
||||
// If mapped is "true", map the rooms again after anonymization
|
||||
if mapped == "true" {
|
||||
for i := range anonymizedRoomSchedule {
|
||||
anonymizedRoomSchedule[i].Rooms = functions.MapRoom(anonymizedRoomSchedule[i].Rooms)
|
||||
anonymizedRoomSchedule[i].Rooms = functions.MapRoom(anonymizedRoomSchedule[i].Rooms, true)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user