auto-git:
[change] concept-maker_gui.py
This commit is contained in:
@@ -2740,6 +2740,11 @@ class App(TkinterDnD.Tk): # type: ignore
|
|||||||
} for p in self.files]
|
} for p in self.files]
|
||||||
# stable order
|
# stable order
|
||||||
files_list.sort(key=lambda x: (x["path"], not x["include"]))
|
files_list.sort(key=lambda x: (x["path"], not x["include"]))
|
||||||
|
websites_list = [{
|
||||||
|
"url": str(u),
|
||||||
|
"include": bool(self.include_map.get(str(u), True))
|
||||||
|
} for u in self.websites]
|
||||||
|
websites_list.sort(key=lambda x: (x["url"], not x["include"]))
|
||||||
variants: List[Dict[str, str]] = []
|
variants: List[Dict[str, str]] = []
|
||||||
for v in (self.rephrase_variants or []):
|
for v in (self.rephrase_variants or []):
|
||||||
if not isinstance(v, dict):
|
if not isinstance(v, dict):
|
||||||
@@ -2755,6 +2760,7 @@ class App(TkinterDnD.Tk): # type: ignore
|
|||||||
"notes": self.notes.get("1.0", tk.END).strip(),
|
"notes": self.notes.get("1.0", tk.END).strip(),
|
||||||
"concept": self.concept.get("1.0", tk.END).strip(),
|
"concept": self.concept.get("1.0", tk.END).strip(),
|
||||||
"files": files_list,
|
"files": files_list,
|
||||||
|
"websites": websites_list,
|
||||||
"rephrase_variants": variants,
|
"rephrase_variants": variants,
|
||||||
"rephrase_selected_key": self.rephrase_selected_key,
|
"rephrase_selected_key": self.rephrase_selected_key,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user