diff --git a/.env b/.env deleted file mode 100644 index 82c1fada..00000000 --- a/.env +++ /dev/null @@ -1,16 +0,0 @@ -# production database credentials -PROD_DB_USER=postgres -PROD_DB_PASSWORD= -PROD_DB_HOST=localhost -PROD_DB_PORT=5432 - -# test database credentials -TEST_DB_USER=postgres -TEST_DB_PASSWORD=postgres -TEST_DB_HOST=localhost -TEST_DB_PORT=5432 - -#Gitlab token -HUB_TOKEN=9s_CJYh5TcWhyYL416MM - -DEV_SECRET_NAME=dp.st.dev.Axvak1ILOlCOwUNGajv7fg5VPaacFR6OL1kdb3YGWHX \ No newline at end of file diff --git a/persistence/models/city.py b/persistence/models/city.py index bc95fa21..2b9e9a12 100644 --- a/persistence/models/city.py +++ b/persistence/models/city.py @@ -11,6 +11,7 @@ from persistence.db_config import Base from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.orm import relationship import datetime +import numpy as np class City(Base): @@ -41,7 +42,9 @@ class City(Base): self.name = name self.srs_name = srs_name self.country_code = country_code - self.lower_corner = l_corner.tolist() - self.upper_corner = u_corner.tolist() + l_corner = l_corner.tolist() if type(l_corner) == np.ndarray else l_corner + u_corner = u_corner.tolist() if type(u_corner) == np.ndarray else u_corner + self.lower_corner = l_corner + self.upper_corner = u_corner