fixed bug introduced recently when non-GAE, thanks Dominic Koenig

This commit is contained in:
Massimo Di Pierro
2012-05-07 08:15:47 -05:00
parent 46387d9dd6
commit c4fc83c179
2 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-05-06 17:32:01) dev Version 1.99.7 (2012-05-07 08:14:28) dev
+1 -1
View File
@@ -7179,7 +7179,7 @@ class Table(dict):
if rows: if rows:
return rows[0] return rows[0]
return None return None
elif str(key).isdigit() or isinstance(key, Key): elif str(key).isdigit() or 'google' in drivers and isinstance(key, Key):
return self._db(self._id == key).select(limitby=(0,1)).first() return self._db(self._id == key).select(limitby=(0,1)).first()
elif key: elif key:
return dict.__getitem__(self, str(key)) return dict.__getitem__(self, str(key))