Elwig: Fix most compiler warnings
Test / Run tests (push) Successful in 2m29s

This commit is contained in:
lorenz.stechauner committed 2026-11-24 19:37:13 +01:00
1 parent 9e110a467a
commit 2cc58f8df6
24 files changed
+112 -125

No files matched your search

+1 -2
View File
@@ -26,8 +26,7 @@ namespace Elwig.Models.Dtos {
}
private static async Task<IEnumerable<WeightBreakdownRow>> FromDbSet(DbSet<WeightBreakdownRow> table, int year, string? zwstid) {
zwstid = zwstid == null ? "NULL" : $"'{zwstid}'";
return await table.FromSqlRaw($"""
return await table.FromSql($"""
SELECT type, sortid, attrid, cultid, v.qualid, contracted, SUM(weight) AS weight
FROM v_stat_total v
LEFT JOIN wine_quality_level q ON q.qualid = v.qualid