Skip to content
Snippets Groups Projects
Commit c0574553 authored by Rivers, Travis (Contractor) Creighton's avatar Rivers, Travis (Contractor) Creighton
Browse files

fix imports

parent 0724bdd6
No related branches found
No related tags found
No related merge requests found
from geomagio.api.db.create_db import create_db
from geomagio.api.db.create import create_db
create_db()
......@@ -13,7 +13,7 @@ class Observatory(BaseModel):
declination_base: int
sensor_orientation: str
@validator("agency_name", always=true)
@validator("agency_name", always=True)
def validate_agency_name(cls, agency_name: str, values: Dict) -> str:
agency = values.get("agency")
if not agency_name:
......@@ -29,7 +29,7 @@ class Observatory(BaseModel):
agency_name = "Japan Meteorological Agency (JMA)"
return agency_name
@validator("sensor_orientation", always=true)
@validator("sensor_orientation", always=True)
def validate_sensor_orientation(cls, sensor_orientation: str, values: Dict) -> str:
agency = values.get("agency")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment