Update orm.py

pull/632/head
Mr Chen 5 months ago
parent a0c228e352
commit 9d05edf09f
  1. 3
      web/core/orm.py

@ -122,7 +122,8 @@ class ORM:
def find(self, sql):
d = self.query(sql)
if d is not None:
return d[0]
if len(d) > 0:
return d[0]
return None
def query(self, sql):

Loading…
Cancel
Save