From 310b6de2cc28046bae8b26082a67cd67a0a4ac6c Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 1 Apr 2023 21:02:36 +1100 Subject: [PATCH] UNIFI import plugin 0.1 --- front/plugins/unifi_import/script.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/front/plugins/unifi_import/script.py b/front/plugins/unifi_import/script.py index 00f4bcd8..a6e3106a 100755 --- a/front/plugins/unifi_import/script.py +++ b/front/plugins/unifi_import/script.py @@ -33,7 +33,7 @@ def main(): # init global variables global UNIFI_USERNAME, UNIFI_PASSWORD, UNIFI_HOST - global UNIFI_REQUIRE_PRIVATE_IP, UNIFI_SKIP_NAMED_GUESTS, UNIFI_SKIP_GUESTS, UNIFI_SITES, PORT, PROTOCOL + global UNIFI_SITES, PORT, PROTOCOL last_run_logfile = open(last_run, 'a') @@ -221,8 +221,7 @@ def service_monitoring_log(primaryId, secondaryId, created, watched1, watched2 = if foreignKey == '': foreignKey = 'null' - with open(last_run, 'a') as last_run_logfile: - # https://www.duckduckgo.com|192.168.0.1|2023-01-02 15:56:30|200|0.9898|null|null|Best search engine|null + with open(last_run, 'a') as last_run_logfile: last_run_logfile.write("{}|{}|{}|{}|{}|{}|{}|{}|{}\n".format( primaryId, secondaryId,