Removed .env

This commit is contained in:
Peter Yefi 2023-01-16 13:48:01 -05:00
parent b405297f76
commit 6ba10b0e02
2 changed files with 5 additions and 18 deletions

16
.env
View File

@ -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

View File

@ -11,6 +11,7 @@ from persistence.db_config import Base
from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.orm import relationship from sqlalchemy.orm import relationship
import datetime import datetime
import numpy as np
class City(Base): class City(Base):
@ -41,7 +42,9 @@ class City(Base):
self.name = name self.name = name
self.srs_name = srs_name self.srs_name = srs_name
self.country_code = country_code self.country_code = country_code
self.lower_corner = l_corner.tolist() l_corner = l_corner.tolist() if type(l_corner) == np.ndarray else l_corner
self.upper_corner = u_corner.tolist() u_corner = u_corner.tolist() if type(u_corner) == np.ndarray else u_corner
self.lower_corner = l_corner
self.upper_corner = u_corner