commit 01/10/2025
This commit is contained in:
@@ -16,7 +16,6 @@ import content.Language
|
||||
import content.ScheduleDay
|
||||
import content.VoiceType
|
||||
import database.BroadcastZones
|
||||
import database.BroadcastZonesHtml
|
||||
import database.LanguageLink
|
||||
import database.MariaDB
|
||||
import database.Messagebank
|
||||
@@ -831,17 +830,17 @@ class WebApp(val listenPort: Int, val userlist: List<Pair<String, String>>) {
|
||||
path("BroadcastZones"){
|
||||
get("List") {
|
||||
// TODO : temporary, convert BroadcastZones to BroadcastZonesHtml, karena harus revisi javascript di Bootstrap Studio
|
||||
val newlist: ArrayList<BroadcastZonesHtml> = db.broadcastDB.List.map { xx ->
|
||||
BroadcastZonesHtml(
|
||||
xx.index,
|
||||
xx.description,
|
||||
xx.SoundChannel,
|
||||
xx.id,
|
||||
xx.bp
|
||||
)
|
||||
} as ArrayList<BroadcastZonesHtml>
|
||||
// val newlist: ArrayList<BroadcastZonesHtml> = db.broadcastDB.List.map { xx ->
|
||||
// BroadcastZonesHtml(
|
||||
// xx.index,
|
||||
// xx.description,
|
||||
// xx.SoundChannel,
|
||||
// xx.id,
|
||||
// xx.bp
|
||||
// )
|
||||
// } as ArrayList<BroadcastZonesHtml>
|
||||
|
||||
it.result(MariaDB.ArrayListtoString(newlist))
|
||||
it.result(MariaDB.ArrayListtoString(db.broadcastDB.List))
|
||||
}
|
||||
delete("List"){
|
||||
// truncate broadcast zones table
|
||||
|
||||
Reference in New Issue
Block a user