commit c9f0bdb44e29bc1fea0cb94e89911c83e568e892
parent 5187dd9d82edb0e7b28d038217f5fa3ebb36ca56
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sun, 17 May 2026 19:54:27 +0100
Just duplicating effort at this point
Diffstat:
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/include-bulk.go b/include-bulk.go
@@ -99,23 +99,9 @@ func getBulkTagFormData() BulkTagFormData {
catRows.Close()
}
- recentRows, err := db.Query("SELECT id, filename FROM files ORDER BY id DESC LIMIT 20")
- if err != nil {
- log.Printf("Error: getBulkTagFormData: failed to query recent files: %v", err)
- }
- var recentFiles []File
- if recentRows != nil {
- for recentRows.Next() {
- var f File
- recentRows.Scan(&f.ID, &f.Filename)
- recentFiles = append(recentFiles, f)
- }
- recentRows.Close()
- }
-
return BulkTagFormData{
Categories: cats,
- RecentFiles: recentFiles,
+ RecentFiles: getRecentFiles(),
FormData: struct {
FileRange string
Category string