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

include oid_prefix in interlis text class export #207

Merged
merged 9 commits into from
Apr 18, 2024
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 16, 2024
commit 91754541dd60fe2f933c5ed91fe056a3fa2a4b1c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
ModelInterlisSia405Abwasser,
)
from .interlis_model_mapping.model_interlis_vsa_kek import ModelInterlisVsaKek
from .interlis_model_mapping.model_tww import ModelTwwSys, ModelTwwVl
from .interlis_model_mapping.model_tww_od import ModelTwwOd
from .interlis_model_mapping.model_tww import ModelTwwVl,ModelTwwSys
from .utils.ili2db import InterlisTools
from .utils.various import (
CmdException,
Expand Down Expand Up @@ -459,7 +459,7 @@ def _init_model_classes(self, model):
if self.model_classes_tww_vl is None:
self.model_classes_tww_vl = ModelTwwVl().classes()
self._progress_done(self.current_progress + 1)

if self.model_classes_tww_sys is None:
self.model_classes_tww_sys = ModelTwwSys().classes()
self._progress_done(self.current_progress + 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2407,7 +2407,7 @@ def get_oid_prefix(self, oid_table):
logger.warning(
f'Could not find an active entry in table"{oid_table.__table__.schema}.{oid_table.__name__}". Setting to default instead.'
)
return 'ch080txt' #TODO: is this prefix owned by TEKSI?
return "ch080txt" # TODO: is this prefix owned by TEKSI?

return instance.prefix

Expand Down
Loading