diff --git a/back/pialert.py b/back/pialert.py index 98459dad..b322a6f1 100644 --- a/back/pialert.py +++ b/back/pialert.py @@ -711,7 +711,7 @@ def print_scan_stats (): sql.execute("SELECT * FROM Devices") History_All = sql.fetchall() History_All_Devices = len(History_All) - sql.execute("SELECT * FROM CurrentScan") + sql.execute("""SELECT * FROM CurrentScan WHERE cur_ScanCycle = ? """, (cycle,)) History_Online = sql.fetchall() History_Online_Devices = len(History_Online) History_Offline_Devices = History_All_Devices - History_Online_Devices diff --git a/front/css/dark-patch.css b/front/css/dark-patch.css index acba4e05..2ea92e6c 100644 --- a/front/css/dark-patch.css +++ b/front/css/dark-patch.css @@ -611,6 +611,7 @@ input[type="password"]::-webkit-caps-lock-indicator { /*** Additional fixes For Pi.Alert UI ***/ .small-box { border-radius: 10px; + border-top: 0px; } .pa-small-box-aqua .inner { background-color: rgb(45,108,133); @@ -677,3 +678,29 @@ input[type="password"]::-webkit-caps-lock-indicator { width: 100%; margin: auto; } + +/* remove white border that appears on mobile screen sizes */ +.box-body { + border: 0px; +} +/* remove white border that appears on mobile screen sizes */ +.table-responsive { + border: 0px; +} +/* Add border radius to bottom of the status boxes*/ +.pa-small-box-footer { + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; +} + +.small-box > .inner h3 { + margin-bottom: 0px; + margin-left: 0px; +} +.small-box:hover .icon { + font-size: 3.74em; +} +.small-box .icon { + top: 0.01em; + font-size: 3.25em; +}