summaryrefslogtreecommitdiffhomepage
path: root/src/dbx/mintages.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-13 21:56:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-13 21:56:54 +0200
commitc7ad83472710a7e72d7566b09f2eb223708e1343 (patch)
tree4f76a2dd326344b5f2594d3f3a3d58cf363c3bea /src/dbx/mintages.go
parentdf7d90ed36da337ff271324476591910f3de9792 (diff)
Make the DB private to dbx
Diffstat (limited to 'src/dbx/mintages.go')
-rw-r--r--src/dbx/mintages.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbx/mintages.go b/src/dbx/mintages.go
index ad13906..4a6d5d3 100644
--- a/src/dbx/mintages.go
+++ b/src/dbx/mintages.go
@@ -41,7 +41,7 @@ const ndenoms = 8
func GetMintages(country string) (MintageData, error) {
var zero MintageData
- srows, err := DB.Query(`SELECT * FROM mintages_s WHERE country = ?`, country)
+ srows, err := db.Query(`SELECT * FROM mintages_s WHERE country = ?`, country)
if err != nil {
return zero, err
}
@@ -51,7 +51,7 @@ func GetMintages(country string) (MintageData, error) {
return zero, err
}
- crows, err := DB.Query(`SELECT * FROM mintages_c WHERE country = ?`, country)
+ crows, err := db.Query(`SELECT * FROM mintages_c WHERE country = ?`, country)
if err != nil {
return zero, err
}