Appengine filter inequality and ordering fails

前端 未结 5 1581
悲哀的现实
悲哀的现实 2021-02-01 18:03

I think I\'m overlooking something simple here, I can\'t imagine this is impossible to do.

I want to filter by a datetime attribute and then order the result by a rankin

5条回答
  •  旧时难觅i
    2021-02-01 18:46

    The simplest way would be to split your query:

    q1 = query.filter("submitted >=" thisweek)
    q2 = q1.order("ranking")
    

提交回复
热议问题