We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a5f48 commit 17ff3a9Copy full SHA for 17ff3a9
compliance-monitor/monitor.py
@@ -733,7 +733,13 @@ async def get_scope(
733
):
734
spec = get_scopes()[scopeuuid].spec
735
versions = spec['versions']
736
- relevant = sorted([name for name, version in versions.items() if version['_explicit_validity']])
+ # sort by name, and all drafts after all non-drafts
737
+ column_data = [
738
+ (version['_explicit_validity'].lower() == 'draft', name)
739
+ for name, version in versions.items()
740
+ if version['_explicit_validity']
741
+ ]
742
+ relevant = [name for _, name in sorted(column_data)]
743
modules_chart = {}
744
for name in relevant:
745
for include in versions[name]['include']:
0 commit comments