]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Correcting the Hybrid Property Example
authorJason Myers <jason@jasonamyers.com>
Thu, 10 Sep 2015 13:23:54 +0000 (08:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Sep 2015 13:37:39 +0000 (09:37 -0400)
Fixes #3528

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Conflicts:
lib/sqlalchemy/ext/hybrid.py

lib/sqlalchemy/ext/hybrid.py

index bc6a3d6e4e7e4f549eb7bb3261ca53ad3311fc18..671af74037f5c06d99f852ef8b82f8c6d21aa21e 100644 (file)
@@ -44,8 +44,8 @@ as the class itself::
             return self.end - self.start
 
         @hybrid_method
-        def contains(self,point):
-            return (self.start <= point) & (point < self.end)
+        def contains(self, point):
+            return (self.start <= point) & (point <= self.end)
 
         @hybrid_method
         def intersects(self, other):