fix log output

This commit is contained in:
Florian Baumann 2024-03-19 11:10:36 +01:00
parent 3691890b95
commit f984c69100

View File

@ -29,7 +29,6 @@ func Stats() {
client := storageConnect()
coll := &Collection{client.Database("serra").Collection("cards")}
totalcoll := &Collection{client.Database("serra").Collection("total")}
l := Logger()
defer storageDisconnect(client)
// Show Value Stats
@ -52,10 +51,10 @@ func Stats() {
// Show cards added per month
showCardsAddedPerMonth(coll)
}
func showValueStats(coll *Collection, totalcoll *Collection) {
l := Logger()
// Value and Card Numbers
stats, _ := coll.storageAggregate(mongo.Pipeline{
bson.D{