Skip to content

Commit

Permalink
Merge pull request #805 from lucyparsons/relative_imports
Browse files Browse the repository at this point in the history
relative imports to fix staging
  • Loading branch information
r4v5 authored Aug 19, 2020
2 parents 0054a8f + 79cdde8 commit 05e57f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OpenOversight/app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .models import db, Assignment, Department, Officer, User, Salary, Job
from .utils import get_officer, str_is_true

from OpenOversight.app.csv_imports import import_csv_files
from .csv_imports import import_csv_files


@click.command()
Expand Down
4 changes: 2 additions & 2 deletions OpenOversight/app/csv_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from sqlalchemy.exc import SQLAlchemyError

from OpenOversight.app.model_imports import (
from .model_imports import (
create_assignment_from_dict,
create_incident_from_dict,
create_link_from_dict,
Expand All @@ -18,7 +18,7 @@
update_officer_from_dict,
update_salary_from_dict,
)
from OpenOversight.app.models import (
from .models import (
Assignment,
Department,
Incident,
Expand Down
8 changes: 4 additions & 4 deletions OpenOversight/app/model_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import dateutil

from OpenOversight.app.main import choices
from OpenOversight.app.models import (
from .main import choices
from .models import (
Assignment,
Incident,
LicensePlate,
Expand All @@ -13,8 +13,8 @@
Salary,
db,
)
from OpenOversight.app.utils import get_or_create, str_is_true
from OpenOversight.app.validators import state_validator, url_validator
from .utils import get_or_create, str_is_true
from .validators import state_validator, url_validator

if TYPE_CHECKING:
import datetime # noqa
Expand Down

0 comments on commit 05e57f0

Please sign in to comment.