aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/database
diff options
context:
space:
mode:
Diffstat (limited to 'quarg/database')
-rw-r--r--quarg/database/filters.py4
-rw-r--r--quarg/database/tables.py12
2 files changed, 13 insertions, 3 deletions
diff --git a/quarg/database/filters.py b/quarg/database/filters.py
index a78b117..75142ac 100644
--- a/quarg/database/filters.py
+++ b/quarg/database/filters.py
@@ -1,6 +1,8 @@
-from sqlalchemy.sql.expression import or_, between
+from sqlalchemy.sql.expression import between, or_
+
from quarg.database.tables import Backlog, Buffer, Network, QuasselUser, Sender
+
def msg_like(query):
return Backlog.message.like(query, escape='\\')
diff --git a/quarg/database/tables.py b/quarg/database/tables.py
index 9b819d9..0b14eca 100644
--- a/quarg/database/tables.py
+++ b/quarg/database/tables.py
@@ -1,9 +1,17 @@
import datetime
-from sqlalchemy.schema import Column, ForeignKey
-from sqlalchemy.types import BigInteger, Boolean, DateTime, Integer, Text, TypeDecorator, TypeEngine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
+from sqlalchemy.schema import Column, ForeignKey
+from sqlalchemy.types import (
+ BigInteger,
+ Boolean,
+ DateTime,
+ Integer,
+ Text,
+ TypeDecorator,
+ TypeEngine,
+)
# Timestamps are saved in the database in UTC without timezone info, so attach