Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust imports from ".XXX" to "pypnnomenclature.XXX" #75

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading