fix: tweak installer slightly, per upstream changes

This commit is contained in:
Lance Edgar 2026-01-04 23:13:23 -06:00
parent 4f86c4bcaa
commit bf6494f2a9

View file

@ -104,6 +104,9 @@ class InstallHandler(base.InstallHandler):
# remember the answer
self.install_type = install_type
# and skip the continuum prompt
self.wants_continuum = install_type == "server"
# now we can check the app dir; do this before further questions
self.check_appdir()
@ -138,14 +141,14 @@ class InstallHandler(base.InstallHandler):
[sys.executable, "-m", "pip", "install", "WuttaPOS[terminal]"]
)
def get_dbinfo(self):
def get_db_url(self):
if self.alongside:
return {"dburl": self.config.appdb_engine.url}
return self.config.appdb_engine.url
return super().get_dbinfo()
return super().get_db_url()
def make_template_context(self, dbinfo, **kwargs):
context = super().make_template_context(dbinfo, **kwargs)
def make_template_context(self, **kwargs):
context = super().make_template_context(**kwargs)
context["install_type"] = self.install_type
context["store_id"] = self.store_id