We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc02552 commit 4d71e13Copy full SHA for 4d71e13
1 file changed
modules/contentManager/data_io.py
@@ -152,6 +152,16 @@ def save_all(self):
152
self._save_json("refinements.json", new_refinements)
153
self._save_json("stats.json", self.unified_data["stats"])
154
155
+ # Automatically recompile the content graph
156
+ print("Recompiling content graph...")
157
+ migrate_script = os.path.join(PROJECT_ROOT, "scripts", "migrate_to_graph.py")
158
+ import subprocess
159
+ try:
160
+ subprocess.run(["python", migrate_script], check=True, cwd=PROJECT_ROOT)
161
+ print("Content graph recompiled successfully.")
162
+ except Exception as e:
163
+ print(f"Error recompiling content graph: {e}")
164
+
165
def _save_json(self, filename, data):
166
path = os.path.join(self.data_dir, filename)
167
with open(path, 'w', encoding='utf-8') as f:
0 commit comments