We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50cf2aa commit 7bb3d25Copy full SHA for 7bb3d25
1 file changed
corems/encapsulation/factory/processingSetting.py
@@ -927,9 +927,10 @@ class MolecularFormulaSearchSettings:
927
used_atom_valences: dict = dataclasses.field(default_factory=dict)
928
929
def __post_init__(self):
930
- self.url_database = os.getenv(
+ if not self.url_database or self.url_database == "":
931
+ self.url_database = os.getenv(
932
"COREMS_DATABASE_URL", "sqlite:///db/molformula.db"
- )
933
+ )
934
# enforce datatype
935
for field in dataclasses.fields(self):
936
value = getattr(self, field.name)
0 commit comments