BE: CurrentScan table leanup - column rename

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-01-25 16:38:45 +11:00
parent f173325b7b
commit d24411fa53
37 changed files with 450 additions and 450 deletions

View File

@@ -554,7 +554,7 @@
},
{
"column": "Object_PrimaryID",
"mapped_to_column": "cur_MAC",
"mapped_to_column": "scanMac",
"css_classes": "col-sm-3",
"show": true,
"type": "device_name_mac",
@@ -578,7 +578,7 @@
},
{
"column": "Object_SecondaryID",
"mapped_to_column": "cur_IP",
"mapped_to_column": "scanLastIP",
"css_classes": "col-sm-2",
"show": true,
"type": "device_ip",
@@ -602,7 +602,7 @@
},
{
"column": "Watched_Value1",
"mapped_to_column": "cur_Name",
"mapped_to_column": "scanName",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
@@ -618,7 +618,7 @@
},
{
"column": "Watched_Value2",
"mapped_to_column": "cur_NetworkNodeMAC",
"mapped_to_column": "scanParentMAC",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
@@ -634,7 +634,7 @@
},
{
"column": "Watched_Value3",
"mapped_to_column": "cur_PORT",
"mapped_to_column": "scanParentPort",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
@@ -650,7 +650,7 @@
},
{
"column": "Watched_Value4",
"mapped_to_column": "cur_SSID",
"mapped_to_column": "scanSSID",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
@@ -666,7 +666,7 @@
},
{
"column": "Extra",
"mapped_to_column": "cur_Type",
"mapped_to_column": "scanType",
"css_classes": "col-sm-2",
"show": false,
"type": "label",
@@ -682,7 +682,7 @@
},
{
"column": "Dummy",
"mapped_to_column": "cur_ScanMethod",
"mapped_to_column": "scanSourcePlugin",
"mapped_to_column_data": {
"value": "OMDSDN"
},

View File

@@ -320,7 +320,7 @@ def main():
# "database_column_definitions": [
# {
# "column": "Object_PrimaryID", <--------- the value I save into primaryId
# "mapped_to_column": "cur_MAC", <--------- gets unserted into the CurrentScan DB table column cur_MAC
# "mapped_to_column": "scanMac", <--------- gets unserted into the CurrentScan DB table column scanMac
# watched1 = 'null' ,
# figure a way to run my udpate script delayed
@@ -342,7 +342,7 @@ def main():
watched3=myport, # PORT
watched4=myssid, # SSID
extra=device[TYPE],
# omada_site, # SITENAME (cur_NetworkSite) or VENDOR (cur_Vendor) (PICK one and adjust config.json -> "column": "Extra")
# omada_site, # SITENAME (scanSite) or VENDOR (scanVendor) (PICK one and adjust config.json -> "column": "Extra")
foreignKey=device[MAC].lower().replace("-", ":"),
) # usually MAC