try:\r
player_q = DBSession.query(Player).\\r
filter(Player.player_id > 2).\\r
+ filter(Player.active_ind == True).\\r
filter(sa.not_(Player.nick.like('Anonymous Player%'))).\\r
order_by(Player.player_id.desc())\r
\r
player_id = -1;\r
\r
try:\r
- player = DBSession.query(Player).filter_by(player_id=player_id).one()\r
+ player = DBSession.query(Player).filter_by(player_id=player_id).\\r
+ filter(Player.active_ind == True).one()\r
\r
weapon_stats = DBSession.query("descr", "weapon_cd", "actual_total", \r
"max_total", "hit_total", "fired_total", "frags_total").\\r
q = q.filter(
func.upper(Player.stripped_nick).like('%'+nick.upper()+'%')).\
filter(Player.player_id > 2).\
+ filter(Player.active_ind == True).\
order_by(Player.player_id)
# server-only searches