add housekeeping code to delete duplicated tags and videos

This commit is contained in:
2022-05-05 21:32:35 +02:00
parent 9faf457c89
commit f7a0d8fa07
6 changed files with 157 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func getFromDB() {
* @apiSuccess {string} TagName name of the Tag
*/
api.AddHandler("getAllTags", api.TagNode, api.PermUser, func(context api.Context) {
query := "SELECT tag_id,tag_name from tags"
query := "SELECT tag_id,tag_name from tags ORDER BY tag_name"
context.Json(readTagsFromResultset(database.Query(query)))
})
}