Skip to content

Commit

Permalink
prevent 401 in ingress #961
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Jan 19, 2025
1 parent e766b19 commit 4363e08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions front/devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
<!-- page script ----------------------------------------------------------- -->
<script>
var deviceStatus = 'all';
var tableRows = getCookie ("nax_parTableRows") == "" ? 10 : getCookie ("nax_parTableRows") ;
var tableOrder = getCookie ("nax_parTableOrder") == "" ? [[3,'desc'], [0,'asc']] : JSON.parse(getCookie ("nax_parTableOrder")) ;
var tableRows = getCache ("nax_parTableRows") == "" ? 10 : getCache ("nax_parTableRows") ;
var tableOrder = getCache ("nax_parTableOrder") == "" ? [[3,'desc'], [0,'asc']] : JSON.parse(getCache ("nax_parTableOrder")) ;

var tableColumnHide = [];
var tableColumnOrder = [];
Expand Down Expand Up @@ -740,11 +740,11 @@ function initializeDatatable (status) {

// Save cookie Rows displayed, and Parameters rows & order
$('#tableDevices').on( 'length.dt', function ( e, settings, len ) {
setCookie ("nax_parTableRows", len, 129600); // save for 90 days
setCache ("nax_parTableRows", len, 129600); // save for 90 days
} );

$('#tableDevices').on( 'order.dt', function () {
setCookie ("nax_parTableOrder", JSON.stringify (table.order()), 129600); // save for 90 days
setCache ("nax_parTableOrder", JSON.stringify (table.order()), 129600); // save for 90 days
} );

// add multi-edit button
Expand Down
2 changes: 1 addition & 1 deletion server/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def execute_plugin(db, all_plugins, plugin, pluginsState = plugins_state() ):
return pluginsState
else:
mylog('verbose', ['[Plugins] SUCCESS, received ', len(sqlParams), ' entries'])
# mylog('debug', ['[Plugins] sqlParam entries: ', sqlParams]) # not working for som reason
mylog('debug', ['[Plugins] sqlParam entries: ', sqlParams])

# process results if any
if len(sqlParams) > 0:
Expand Down

0 comments on commit 4363e08

Please sign in to comment.