mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-01 09:00:01 +01:00
fix storing of app in project class
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ from helpers.Project import Project
|
||||
from utils.arguments import get_arguments
|
||||
from logger.logger import logger
|
||||
|
||||
|
||||
def init():
|
||||
load_dotenv()
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user