Changeset 51444 in webkit


Ignore:
Timestamp:
Nov 27, 2009 10:49:01 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-27 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Make commit-queue status not throw an exception where there is not
status
https://bugs.webkit.org/show_bug.cgi?id=31936

We need to actually fetch the results of the query to see what's in the
datastore.

  • CommitQueueStatus/queue_status.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51443 r51444  
     12009-11-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Make commit-queue status not throw an exception where there is not
     6        status
     7        https://bugs.webkit.org/show_bug.cgi?id=31936
     8
     9        We need to actually fetch the results of the query to see what's in the
     10        datastore.
     11
     12        * CommitQueueStatus/queue_status.py:
     13
    1142009-11-27  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebKitTools/CommitQueueStatus/queue_status.py

    r51264 r51444  
    6767class PatchStatus(webapp.RequestHandler):
    6868    def get(self, queue_name, attachment_id):
    69         statuses = QueueStatus.all().filter('queue_name =', queue_name).filter('active_patch_id =', attachment_id).order('-date')
     69        statuses = QueueStatus.all().filter('queue_name =', queue_name).filter('active_patch_id =', attachment_id).order('-date').fetch(1)
    7070        if not statuses:
    7171            self.error(404)
     72            return
    7273        self.response.out.write(statuses[0].message)
    7374
Note: See TracChangeset for help on using the changeset viewer.