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