We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a6bf3 commit 63a181cCopy full SHA for 63a181c
pioreactorui/__init__.py
@@ -56,6 +56,10 @@
56
)
57
58
59
+def decode_base64(string: str) -> str:
60
+ return loads(string)
61
+
62
63
def create_app():
64
from .unit_api import unit_api
65
from .api import api
@@ -142,6 +146,10 @@ def _get_app_db_connection():
142
146
db = getattr(g, "_app_database", None)
143
147
if db is None:
144
148
db = g._app_database = sqlite3.connect(pioreactor_config.get("storage", "database"))
149
+ db.create_function(
150
+ "BASE64", 1, decode_base64
151
+ ) # TODO: until next OS release which implements a native sqlite3 base64 function
152
145
153
db.row_factory = _make_dicts
154
db.execute("PRAGMA foreign_keys = 1")
155
0 commit comments