Skip to content
This repository
Browse code

Whitespace

  • Loading branch information...
commit 35aa4edcad250b8c25aa48e9671a426831f95f82 1 parent eeeefc9
Charles Leifer authored October 08, 2012

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  README.rst
12  README.rst
Source Rendered
@@ -19,22 +19,22 @@ Examples::
19 19
 
20 20
     # a simple query selecting a user
21 21
     User.get(User.username == 'charles')
22  
-    
  22
+
23 23
     # get the staff and super users
24 24
     editors = User.select().where(
25 25
         (User.is_staff == True) |
26 26
         (User.is_superuser == True)
27 27
     )
28  
-    
  28
+
29 29
     # get tweets by editors ("<<" maps to IN)
30 30
     Tweet.select().where(Tweet.user << editors)
31  
-    
  31
+
32 32
     # how many active users are there?
33 33
     User.select().where(User.active == True).count()
34  
-    
  34
+
35 35
     # paginate the user table and show me page 3 (users 41-60)
36 36
     User.select().order_by(User.username).paginate(3, 20)
37  
-    
  37
+
38 38
     # order users by number of tweets
39 39
     User.select().annotate(Tweet).order_by(
40 40
         fn.Count(Tweet.id).desc()
@@ -44,7 +44,7 @@ Examples::
44 44
     User.select(
45 45
         User, fn.Count(Tweet.id).alias('ct')
46 46
     ).join(Tweet).group_by(User).order_by(R('ct desc'))
47  
-    
  47
+
48 48
     # do an atomic update
49 49
     Counter.update(count=Counter.count + 1).where(
50 50
         Counter.url == request.url

0 notes on commit 35aa4ed

Please sign in to comment.
Something went wrong with that request. Please try again.