One more case of incorrect comparison in recordpatchevent.py
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Oct 2014 20:58:26 +0000 (20:58 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Oct 2014 20:58:26 +0000 (20:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137459

Reviewed by Tim Horton.

* QueueStatusServer/app.yaml:
* QueueStatusServer/loggers/recordpatchevent.py:
(RecordPatchEvent.started):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174364 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/QueueStatusServer/app.yaml
Tools/QueueStatusServer/loggers/recordpatchevent.py

index b928168..2c15b73 100644 (file)
@@ -1,5 +1,16 @@
 2014-10-06  Alexey Proskuryakov  <ap@apple.com>
 
+        One more case of incorrect comparison in recordpatchevent.py
+        https://bugs.webkit.org/show_bug.cgi?id=137459
+
+        Reviewed by Tim Horton.
+
+        * QueueStatusServer/app.yaml:
+        * QueueStatusServer/loggers/recordpatchevent.py:
+        (RecordPatchEvent.started):
+
+2014-10-06  Alexey Proskuryakov  <ap@apple.com>
+
         webkit-queues PatchLog is incorrect for patches that took less than a second
         https://bugs.webkit.org/show_bug.cgi?id=137453
 
index 3a5b866..c6af5b2 100644 (file)
@@ -1,5 +1,5 @@
 application: webkit-queues
-version: 174357 # SVN revision of last major change
+version: 174364 # SVN revision of last major change
 runtime: python
 api_version: 1
 
index b6f0f3b..838ef1d 100644 (file)
@@ -53,7 +53,7 @@ class RecordPatchEvent(object):
 
         # An existing wait_duration implies the patch had been started previously and is
         # being picked up again because it had expired, or was released.
-        if patch_log.wait_duration:
+        if patch_log.wait_duration is not None:
             patch_log.retry_count += 1
             patch_log.put()