From ba82bf3deed159b55c352131516d2b87eee5da26 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 23 May 2014 15:24:52 -0700 Subject: [PATCH] Minor cleanups --- lib/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models.py b/lib/models.py index 1328e62..c83fd23 100644 --- a/lib/models.py +++ b/lib/models.py @@ -25,7 +25,7 @@ import utils # Profile # ↳ Client # -# Instance (⤴︎ Client) +# Instance # # Subject # ↳ Message @@ -97,7 +97,7 @@ class Instance(db.Model): @classmethod @db.transactional() def FindOrCreate(cls, instance_id): - instance = cls.get_by_key_name(instance_id) + instance = cls.FromID(instance_id) if instance: return instance else: