fixed minor bugs, added import for From-Hell in Erfurt

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-03 11:41:07 +01:00
parent 0d1215558e
commit 0102ba9f11
5 changed files with 225 additions and 6 deletions
@@ -286,14 +286,14 @@ public class MariaDB implements Database {
try {
extractCoords(results.getString(COORDS)).optional().ifPresent(appointment::coords);
} catch (SQLException e) {
LOG.log(WARNING, "Failed to read coordinates from database!");
LOG.log(TRACE, "Result set did not cointain coords!");
}
try {
var tags = nullIfEmpty(results.getString("tags"));
if (tags != null) appointment.tags(tags.split(","));
} catch (SQLException e) {
LOG.log(WARNING, "Failed to read tags from database!");
LOG.log(TRACE, "Result set did not cointain tags!");
}
return Payload.of(appointment);
}