fixed rounding error in coords

This commit is contained in:
2024-06-10 08:02:51 +02:00
parent 7ca41840cf
commit 60ad5c660d

View File

@@ -87,7 +87,7 @@ public class JodelPost {
this.title = rs.getString("title");
this.content = rs.getString("content");
this.date = rs.getTimestamp("postdate");
this.location = new Location(rs.getLong("longitude"), rs.getLong("latitude"));
this.location = new Location(rs.getFloat("longitude"), rs.getFloat("latitude"));
this.reactions = new Reactions(rs.getLong("positive"), rs.getLong("negative"));
this.parent = Optional.of(rs.getLong("parent"));
}