db(db.person).select().column('name'), thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.9.5-trunk+timestamp.2014.05.16.22.42.19
|
||||
Version 2.9.5-trunk+timestamp.2014.05.26.22.25.23
|
||||
|
||||
@@ -10979,6 +10979,9 @@ class Rows(object):
|
||||
self.export_to_csv_file(s)
|
||||
return s.getvalue()
|
||||
|
||||
def column(self, column=None):
|
||||
return [r[str(column) if column else self.colnames[0]] for r in self]
|
||||
|
||||
def first(self):
|
||||
if not self.records:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user