Browse Source

Merge "Display gate results ordered"

changes/91/391991/1
Jenkins 5 years ago
committed by Gerrit Code Review
parent
commit
ded4ac5a60
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      gertty/view/change.py

+ 12
- 1
gertty/view/change.py View File

@ -13,8 +13,13 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
import datetime
import logging
try:
import ordereddict
except:
pass
import textwrap
from six.moves.urllib import parse as urlparse
@ -29,6 +34,11 @@ from gertty.view import unified_diff as view_unified_diff
from gertty.view import mouse_scroll_decorator
import gertty.view
try:
OrderedDict = collections.OrderedDict
except AttributeError:
OrderedDict = ordereddict.OrderedDict
class EditTopicDialog(mywid.ButtonDialog):
signals = ['save', 'cancel']
def __init__(self, app, topic):
@ -746,7 +756,8 @@ class ChangeView(urwid.WidgetWrap):
for commentlink in self.app.config.commentlinks:
results = commentlink.getTestResults(self.app, message.message)
if results:
result_system = result_systems.get(message.author.name, {})
result_system = result_systems.get(message.author.name,
OrderedDict())
result_systems[message.author.name] = result_system
result_system.update(results)
skip = False


Loading…
Cancel
Save