Skip to content

Commit d2b13d5

Browse files
committed
Fix inversed latitude and longitude
1 parent c31ede4 commit d2b13d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def from_db(db_entry: models.School) -> School:
5656
return School.model_validate(db_entry)
5757
shape = to_shape(db_entry.location)
5858
school = School.model_validate(db_entry)
59-
school.latitude = shape.x
60-
school.longitude = shape.y
59+
school.latitude = shape.y
60+
school.longitude = shape.x
6161
return school
6262

6363

0 commit comments

Comments
 (0)