Changeset b80ec57 in osmose-frontend


Ignore:
Timestamp:
Jan 20, 2013 5:37:22 PM (7 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
28a008c
Parents:
a1ac178
Message:

Support param level= on byuser page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • byuser.py

    r23600ff rb80ec57  
    3636    username = username or request.params.username 
    3737    item = request.params.get('item', type=int) 
     38    level = request.params.get('level', type=int) 
    3839    if not username: 
    3940        return template('byuser/index') 
     
    6768            sql += "AND m.item = %s " 
    6869            params.append(item) 
     70        if level: 
     71            sql += "AND c.level = %s " 
     72            params.append(level) 
    6973        sql += """ 
    7074ORDER BY 
Note: See TracChangeset for help on using the changeset viewer.