dumpDB stores ignore for importTime and styleKey as those are runtime-dependant and outside of its scope

This commit is contained in:
steffen123 2010-08-22 07:54:03 +02:00
parent 4e01892fcb
commit b06c7763d8

View File

@ -321,7 +321,12 @@ class Database:
else: else:
for row in rows: for row in rows:
for columnNumber in range(len(columnNames)): for columnNumber in range(len(columnNames)):
result+=(" "+columnNames[columnNumber][0]+"="+str(row[columnNumber])+"\n") if columnNames[columnNumber][0]=="importTime":
result+=(" "+columnNames[columnNumber][0]+"=ignore\n")
elif columnNames[columnNumber][0]=="styleKey":
result+=(" "+columnNames[columnNumber][0]+"=ignore\n")
else:
result+=(" "+columnNames[columnNumber][0]+"="+str(row[columnNumber])+"\n")
result+="\n" result+="\n"
result+="\n" result+="\n"
return result return result