More rework

This commit is contained in:
Adrian Woodley
2016-12-16 14:20:20 +08:00
parent 320f5f7895
commit f21abf7aaf

View File

@@ -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