Skip to content

Commit 5eeb430

Browse files
mattipclaude
andcommitted
use default normalization
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0d6dba2 commit 5eeb430

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

codespeed/views.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,19 @@ def comparison(request):
380380
except:
381381
pass # Keep "none" as default baseline
382382

383+
if selectedbaseline == "none" and 'bas' not in data:
384+
if hasattr(settings, 'DEF_EXECUTABLES') and settings.DEF_EXECUTABLES:
385+
try:
386+
exe_spec = settings.DEF_EXECUTABLES[0]
387+
proj = Project.objects.get(name=exe_spec['project'])
388+
exe = Executable.objects.get(name=exe_spec['name'], project=proj)
389+
for key in exekeys:
390+
if key.startswith(str(exe.id) + "+L+") and key in checkedexecutables:
391+
selectedbaseline = key
392+
break
393+
except (Executable.DoesNotExist, Project.DoesNotExist):
394+
pass
395+
383396
selecteddirection = False
384397
if ('hor' in data and data['hor'] == "true" or
385398
hasattr(settings, 'CHART_ORIENTATION') and

0 commit comments

Comments
 (0)