From 9a300ee11e08e36dfcbc4f0b2c6effa2cc738906 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 21 Jul 2019 16:07:52 +0200 Subject: Object type should not start with AP --- pyapd/stores/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3