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() csvWriter.writeheader()
c.execute('''SELECT DISTINCT IP FROM SettingsValues ORDER BY IP''') c.execute('''SELECT DISTINCT IP FROM SettingsValues ORDER BY IP''')
for Row in c: for Device in c:
IP = Row IP = Device
print((('''SELECT SettingsID, Value print((('''SELECT SettingsID, Value
FROM SettingsValues WHERE IP = \'%s\'''' % IP))) FROM SettingsValues WHERE IP = \'%s\'''' % IP)))
row = c.execute('''SELECT SettingsID, Value row = c.execute('''SELECT SettingsID, Value