9 Commits

6 changed files with 31 additions and 8 deletions
+4 -1
View File
@@ -15,4 +15,7 @@
url = https://git.thewisewolf.dev/HoloTech/psqlmapper.git url = https://git.thewisewolf.dev/HoloTech/psqlmapper.git
[submodule "src/modules/profiles"] [submodule "src/modules/profiles"]
path = src/modules/profiles path = src/modules/profiles
url = git@thewisewolf.dev:HoloTech/profiles-plugin.git url = https://git.thewisewolf.dev/HoloTech/profiles-plugin.git
[submodule "src/modules/pluscampaign"]
path = src/modules/pluscampaign
url = https://git.thewisewolf.dev/CarmiCoven/pluscampaign-plugin.git
+18
View File
@@ -18,6 +18,24 @@ BEGIN
RETURN NEW; RETURN NEW;
END; END;
$$ language 'plpgsql'; $$ language 'plpgsql';
CREATE OR REPLACE FUNCTION current_module_version(module_name TEXT)
RETURNS INTEGER
AS $$
SELECT
to_version
FROM version_history
WHERE
component = $1
ORDER BY _timestamp DESC
LIMIT 1;
$$ LANGUAGE SQL;
CREATE TABLE app_config(
appname TEXT PRIMARY KEY,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
-- }}} -- }}}
-- App metadata {{{ -- App metadata {{{
+6 -5
View File
@@ -1,12 +1,13 @@
this_package = "modules" this_package = "modules"
active = [ active = [
".sysadmin", ".sysadmin",
".profiles", ".profiles",
".voicefix", ".voicefix",
".messagelogger", ".messagelogger",
".voicelog", ".voicelog",
".yarn" ".yarn",
".pluscampaign",
] ]
+1 -1
View File
@@ -56,7 +56,7 @@ class LeoUI(View):
Currently exposes a hidden attribute of the underlying View. Currently exposes a hidden attribute of the underlying View.
May be reimplemented in future. May be reimplemented in future.
""" """
return self._View__stopped return self._BaseView__stopped
def to_components(self) -> List[Dict[str, Any]]: def to_components(self) -> List[Dict[str, Any]]:
""" """