diff options
| author | J08nY | 2017-06-22 13:41:25 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-22 13:41:25 +0200 |
| commit | f5bed5fbb876fb76c9a4e458795cdfb81e986bb6 (patch) | |
| tree | be05279beba9f2c19960e0771cbbe7128f493de7 | |
| parent | 280b18a31b3c413115647fde18767c2c6189896d (diff) | |
| download | mailman-pgp-f5bed5fbb876fb76c9a4e458795cdfb81e986bb6.tar.gz mailman-pgp-f5bed5fbb876fb76c9a4e458795cdfb81e986bb6.tar.zst mailman-pgp-f5bed5fbb876fb76c9a4e458795cdfb81e986bb6.zip | |
| -rw-r--r-- | src/mailman_pgp/database/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman_pgp/database/__init__.py b/src/mailman_pgp/database/__init__.py index 0046e53..950c6b1 100644 --- a/src/mailman_pgp/database/__init__.py +++ b/src/mailman_pgp/database/__init__.py @@ -54,3 +54,8 @@ def transaction(): raise else: config.db.session.commit() + + +@public +def query(cls): + return config.db.session.query(cls) |
