~linaro-graphics-wg/linaro-graphics-dashboard/trunk

« back to all changes in this revision

Viewing changes to linaro_graphics_app/views/util.py

  • Committer: Alexandros Frantzis
  • Date: 2012-07-12 08:38:01 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20120712083801-4svjasyustktmtpe
util: Properly handle queries involving the "default" pseudo-session.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    elif session is not None:
54
54
        if session.startswith("android"):
55
55
            q = q_android
 
56
        elif session == "default":
 
57
            q = q_x11 & ~Q(attributes__name = "gfx.session")
56
58
        else:
57
59
            q = (q_x11 & q_session)
58
60