Skip to content

Commit

Permalink
fix: adjust imports from ".XXX" to "pypnnomenclature.XXX"
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux authored and jacquesfize committed Sep 9, 2024
1 parent e692f07 commit 46c7483
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pypnnomenclature/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from flask import has_app_context, g
from flask_admin.contrib.sqla import ModelView
from flask_admin.contrib.sqla.filters import BaseSQLAFilter
from .models import TNomenclatures, BibNomenclaturesTypes
from .env import db
from pypnnomenclature.models import TNomenclatures, BibNomenclaturesTypes
from pypnnomenclature.env import db
from sqlalchemy import select


Expand Down
2 changes: 1 addition & 1 deletion src/pypnnomenclature/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from sqlalchemy.sql import select, func
from utils_flask_sqla.serializers import serializable

from .env import db
from pypnnomenclature.env import db


@serializable
Expand Down
4 changes: 2 additions & 2 deletions src/pypnnomenclature/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from importlib import import_module
from flask import current_app

from .models import (
from pypnnomenclature.models import (
TNomenclatures,
BibNomenclaturesTypes,
TNomenclatureTaxonomy,
Expand All @@ -14,7 +14,7 @@
)
from sqlalchemy import select, func

from .env import db
from pypnnomenclature.env import db


def get_nomenclature_list(
Expand Down
2 changes: 1 addition & 1 deletion src/pypnnomenclature/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from flask import Blueprint, request, jsonify
from utils_flask_sqla.response import json_resp

from . import repository
from pypnnomenclature import repository


routes = Blueprint("nomenclatures", __name__)
Expand Down
4 changes: 2 additions & 2 deletions src/pypnnomenclature/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from marshmallow_sqlalchemy.convert import ModelConverter
from marshmallow.fields import Nested

from .models import TNomenclatures as Nomenclature
from .schemas import NomenclatureSchema
from pypnnomenclature.models import TNomenclatures as Nomenclature
from pypnnomenclature.schemas import NomenclatureSchema

"""
This converter automatically add Nested(NomenclatureSchema) fields
Expand Down

0 comments on commit 46c7483

Please sign in to comment.