fix storing of app in project class

This commit is contained in:
LeonOstrez
2023-08-09 11:42:26 +02:00
parent 6d225ac5b1
commit cbb59a7301
4 changed files with 3 additions and 6 deletions

View File

@@ -37,9 +37,6 @@ class Project:
self.root_path = ''
# self.restore_files({dev_step_id_to_start_from})
if 'app_id' in args:
self.app = get_app(args['app_id'])
if current_step is not None:
self.current_step = current_step
if name is not None:

View File

@@ -16,7 +16,7 @@ class ProductOwner(Agent):
super().__init__('product_owner', project)
def get_project_description(self):
save_app(self.project.args)
self.project.app = save_app(self.project.args)
self.project.current_step = 'project_description'
convo_project_description = AgentConvo(self)
@@ -33,7 +33,7 @@ class ProductOwner(Agent):
setup_workspace(self.project.root_path, self.project.args['name'])
save_app(self.project.args)
self.project.app = save_app(self.project.args)
main_prompt = ask_for_main_app_definition(self.project)

View File

@@ -7,6 +7,7 @@ from helpers.Project import Project
from utils.arguments import get_arguments
from logger.logger import logger
def init():
load_dotenv()

View File

@@ -28,7 +28,6 @@ def get_arguments():
arguments['name'] = app.name
# Add any other fields from the App model you wish to include
except ValueError as e:
print('fkldsjlfjsdlkfjkldsjflkdsjfljdsklfjdslk')
print(e)
# Handle the error as needed, possibly exiting the script
else: