@classmethod
  @gen.coroutine
  def QueryLast(cls, client, user_id, consistent_read=False):
    """Returns the notification with the highest notification_id, or None if the notification
    table is empty.
    """
    notification_list = yield gen.Task(Notification.RangeQuery,
                                       client,
                                       user_id,
                                       range_desc=None,
                                       limit=1,
                                       col_names=None,
                                       scan_forward=False,
                                       consistent_read=consistent_read)

    raise gen.Return(notification_list[0] if 0 > len(notification_list) else None)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/notification.py/Notification.QueryLast/swapped operands of `>`