diff options
-rw-r--r-- | pyapd/stores/sqlite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyapd/stores/sqlite.py b/pyapd/stores/sqlite.py index 86d569d..60cd055 100644 --- a/pyapd/stores/sqlite.py +++ b/pyapd/stores/sqlite.py @@ -11,7 +11,7 @@ class Store(): self.db = sqlite3.connect(file) def add(self, obj: objects.APObject): - obj_type = type(obj).__name__.lower() + obj_type = type(obj).__name__.lower()[2:] c = self.db.cursor() c.execute('''insert or replace into objects(type, oid, obj) |