fix: Remove reference to non-existent models.DISC_ROLES
This commit is contained in:
@@ -596,7 +596,7 @@ class AppController:
|
|||||||
self.files = list(self.project.get("files", {}).get("paths", []))
|
self.files = list(self.project.get("files", {}).get("paths", []))
|
||||||
self.screenshots = list(self.project.get("screenshots", {}).get("paths", []))
|
self.screenshots = list(self.project.get("screenshots", {}).get("paths", []))
|
||||||
disc_sec = self.project.get("discussion", {})
|
disc_sec = self.project.get("discussion", {})
|
||||||
self.disc_roles = list(disc_sec.get("roles", list(models.DISC_ROLES)))
|
self.disc_roles = list(disc_sec.get("roles", ["User", "AI"]))
|
||||||
self.active_discussion = disc_sec.get("active", "main")
|
self.active_discussion = disc_sec.get("active", "main")
|
||||||
disc_data = disc_sec.get("discussions", {}).get(self.active_discussion, {})
|
disc_data = disc_sec.get("discussions", {}).get(self.active_discussion, {})
|
||||||
with self._disc_entries_lock:
|
with self._disc_entries_lock:
|
||||||
@@ -1326,7 +1326,7 @@ class AppController:
|
|||||||
self.files = list(self.project.get("files", {}).get("paths", []))
|
self.files = list(self.project.get("files", {}).get("paths", []))
|
||||||
self.screenshots = list(self.project.get("screenshots", {}).get("paths", []))
|
self.screenshots = list(self.project.get("screenshots", {}).get("paths", []))
|
||||||
disc_sec = self.project.get("discussion", {})
|
disc_sec = self.project.get("discussion", {})
|
||||||
self.disc_roles = list(disc_sec.get("roles", list(models.DISC_ROLES)))
|
self.disc_roles = list(disc_sec.get("roles", ["User", "AI"]))
|
||||||
self.active_discussion = disc_sec.get("active", "main")
|
self.active_discussion = disc_sec.get("active", "main")
|
||||||
disc_data = disc_sec.get("discussions", {}).get(self.active_discussion, {})
|
disc_data = disc_sec.get("discussions", {}).get(self.active_discussion, {})
|
||||||
with self._disc_entries_lock:
|
with self._disc_entries_lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user