Commit efa919e3 authored by Alice Salsé's avatar Alice Salsé
Browse files

🔨 removes existing fields list

parent e8f8a072
......@@ -452,7 +452,7 @@ class NetworkTools:
or "start_node" not in layer.fields().names() :
dir = QFileDialog.getSaveFileName(QFileDialog(), "Définir le fichier de destination", filter="CSV (*.csv)")
if dir :
dial = MulipleDialog("Selectionner les attributs à exporter", "Liste des attributs disponibles", layer.fields().names(), self)
dial = MulipleDialog("Selectionner les attributs à exporter", "Liste des attributs disponibles", [f for f in layer.fields().names() if f not in ('id', 'start_node', 'end_node')], self)
if dial.exec_() == QDialog.Accepted:
print(dial.itemsSelected())
l_qtablename=layer.dataProvider().uri().quotedTablename ()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment