aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-21 16:07:52 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-21 16:07:52 +0200
commit9a300ee11e08e36dfcbc4f0b2c6effa2cc738906 (patch)
tree76096772d70ea84e1f6ae7785f5971ad59c28c99
parent1cdfda37e79ba31920ec57b1297417ae6aa2e63b (diff)
Object type should not start with AP
-rw-r--r--pyapd/stores/sqlite.py2
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)