From ca1c22b5fcb56ec755a3a792d5c1cc97719a38b4 Mon Sep 17 00:00:00 2001 From: josuebrunel Date: Sat, 16 Aug 2014 20:38:35 +0200 Subject: [PATCH] Just fixing some stuff --- lokingyql/lokingyql.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lokingyql/lokingyql.py b/lokingyql/lokingyql.py index 93a0544..8eff44b 100644 --- a/lokingyql/lokingyql.py +++ b/lokingyql/lokingyql.py @@ -87,7 +87,8 @@ def use(self, url): ''' self.url = url return self.url - + + ## SELECT def select(self, table=None, items=[]): '''This method simulate a select on a table >>> yql.select('table') @@ -103,9 +104,10 @@ def select(self, table=None, items=[]): return self + ## WHERE def where(self, *args): ''' This method simulates a where condition. Use as follow: - >>>yql.select('mytable').where([('name', '=', 'alain'), ('location', '!=', 'paris')]) + >>>yql.select('mytable').where(['name', '=', 'alain'], ['location', '!=', 'paris']) ''' if not self.table: raise errors.NoTableSelectedError('No Table Selected')