Skip to content

Commit

Permalink
feat: remove relative module path
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-roudaut-crea committed Dec 19, 2023
1 parent c27c601 commit d6f1e46
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config/monitoring/*
!config/monitoring/generic
frontend/assets/*.jpg
*.egg-info

build/
# Node
.npm
node_modules
Expand Down
8 changes: 4 additions & 4 deletions backend/gn_module_monitoring/command/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
from geonature.core.gn_commons.models import TModules


from ..monitoring.models import TMonitoringModules
from ..config.repositories import get_config
from ..config.utils import json_from_file, monitoring_module_config_path
from ..modules.repositories import get_module, get_simple_module
from gn_module_monitoring.monitoring.models import TMonitoringModules
from gn_module_monitoring.config.repositories import get_config
from gn_module_monitoring.config.utils import json_from_file, monitoring_module_config_path
from gn_module_monitoring.modules.repositories import get_module, get_simple_module

from .utils import (
process_export_csv,
Expand Down
2 changes: 1 addition & 1 deletion backend/gn_module_monitoring/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from geonature.utils.errors import GeoNatureError
from geonature.utils.env import DB
from geonature.utils.config import config as gn_config
from ..monitoring.models import TMonitoringModules
from gn_module_monitoring.monitoring.models import TMonitoringModules

SUB_MODULE_CONFIG_DIR = Path(gn_config["MEDIA_FOLDER"]) / "monitorings/"

Expand Down
2 changes: 1 addition & 1 deletion backend/gn_module_monitoring/modules/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from geonature.core.gn_commons.models import TModules
from geonature.core.gn_synthese.models import TSources
from ..monitoring.models import TMonitoringModules
from gn_module_monitoring.monitoring.models import TMonitoringModules


def get_simple_module(field_name, value):
Expand Down
2 changes: 1 addition & 1 deletion backend/gn_module_monitoring/routes/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import geonature.utils.filemanager as fm

from gn_module_monitoring import MODULE_CODE
from ..monitoring.definitions import monitoring_definitions
from gn_module_monitoring.monitoring.definitions import monitoring_definitions
from ..modules.repositories import get_module
from ..utils.utils import to_int
from ..config.repositories import get_config, get_config_with_specific
Expand Down

0 comments on commit d6f1e46

Please sign in to comment.