add housekeeping code to delete duplicated tags and videos

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

No files matched your search

+1 -1
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)))
})
}