From f21abf7aaf6fb66112c88488632a1011a2f74eb4 Mon Sep 17 00:00:00 2001 From: Adrian Woodley Date: Fri, 16 Dec 2016 14:20:20 +0800 Subject: [PATCH] More rework --- sc200-pull.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc200-pull.py b/sc200-pull.py index 5a00415..f4bd3cb 100755 --- a/sc200-pull.py +++ b/sc200-pull.py @@ -278,8 +278,8 @@ def Output(): csvWriter.writeheader() c.execute('''SELECT DISTINCT IP FROM SettingsValues ORDER BY IP''') - for Row in c: - IP = Row + for Device in c: + IP = Device print((('''SELECT SettingsID, Value FROM SettingsValues WHERE IP = \'%s\'''' % IP))) row = c.execute('''SELECT SettingsID, Value