Fix bug loading 0 proclamations

This commit is contained in:
NeilClack
2026-03-25 11:27:16 -05:00
parent 9b6bae9511
commit 678d679b53
+4 -1
View File
@@ -302,7 +302,10 @@ func (p *ScrollerPage) loadProclamations() error {
// 1. Query only Selected AND Available records directly from the DB
var proclamations []db.Proclamation
err := p.Base.Context.DbPtr.Where("selected = ? AND available = ?", true, true).Find(&proclamations).Error
// TODO: Uncomment and replace this line once available is added
// err := p.Base.Context.DbPtr.Where("selected = ? AND available = ?", true, true).Find(&proclamations).Error
err := p.Base.Context.DbPtr.Where("selected = ?", true).Find(&proclamations).Error
if err != nil {
logger.Error("Database query failed: %v", err)