File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
templates/gocam_connections Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 165165
166166const summaryType = '{{summary_type}}' ;
167167const apiPath = '{{api_path}}' ;
168+ const flags = '{{flags}}' ;
168169const modelViewPath = '{{model_view_path}}' ;
169170
170171let currentModels = [ ] ;
171172
172173document . addEventListener ( 'DOMContentLoaded' , async function ( ) {
173- const url = apiPath + '/' + summaryType ;
174+ let url = apiPath + '/' + summaryType ;
175+ if ( flags . length > 0 ) {
176+ url += ':' + flags ;
177+ }
174178 const response = await fetch ( url ) ;
175179
176180 const modelConnections = await response . json ( ) ;
Original file line number Diff line number Diff line change 33def index (request ):
44 summary_type = request .GET .get ('summary_type' , 'connected_only' ).strip ()
55 api_path = request .GET .get ('api_path' , '' ).strip ()
6+ flags = request .GET .get ('flags' , '' ).strip ()
67 model_view_path = request .GET .get ('model_view_path' , '' ).strip ()
78
89 context = {
910 'summary_type' : summary_type ,
1011 'api_path' : api_path ,
12+ 'flags' : flags ,
1113 'model_view_path' : model_view_path
1214 }
1315
You can’t perform that action at this time.
0 commit comments