<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Fix a bug (which I introduced) in handling of linear regressions on linear version numbers.  This resolves the “unsupported operand type(s) for -: ‘tuple’ and ‘tuple’” server error when rendering linear regressions.<div><br></div><div><div>--- a/lnt/server/ui/views.py</div><div>+++ b/lnt/server/ui/views.py</div><div>@@ -547,10 +547,11 @@ def v4_graph():</div><div>             dates = [data_date[1] for data_date in datapoints]</div><div> </div><div>             metadata = {"label":point_label}</div><div>-            # on simple revisions use rev number for x else start from</div><div>-            # 0</div><div>+            </div><div>+            # When we can, map x-axis to revisions, but when that is too hard</div><div>+            # use the position of the sample instead.</div><div>             rev_x = convert_revision(point_label)</div><div>-            x = rev_x if len(rev_x)==1 else pos</div><div>+            x = rev_x[0] if len(rev_x)==1 else pos</div><div> </div><div>             values = [v*normalize_by for v in data]</div><div>             min_index,min_value = min(enumerate(values))</div><div></div></div></body></html>