added active state to csv export
This commit is contained in:
@@ -1,2 +1 @@
|
||||
muster-firma,"peter, muster",peterstrasse,peterort
|
||||
hans muster,musterstrasse,musterort
|
||||
c3000,erich roth,zentralstrasse 120,5430 wettingen
|
||||
|
||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
@@ -166,6 +166,9 @@ class Application:
|
||||
with open(csv_file, "w", encoding="utf-8") as f:
|
||||
writer = csv.writer(f, delimiter=",")
|
||||
for address in self.address_list:
|
||||
if address[0] != "x":
|
||||
continue
|
||||
del address[0]
|
||||
if address[0] == "":
|
||||
del address[0]
|
||||
writer.writerow(address)
|
||||
|
||||
Reference in New Issue
Block a user