solve test startup.py

This commit is contained in:
geekan 2023-12-28 15:46:17 +08:00
parent 25c42890b8
commit 58c8a38fc3
5 changed files with 8 additions and 8 deletions

View file

@ -40,10 +40,11 @@ class ProductManager(Role):
async def _think(self) -> bool:
"""Decide what to do"""
if CONFIG.git_repo:
if CONFIG.git_repo and not CONFIG.git_reinit:
self._set_state(1)
else:
self._set_state(0)
CONFIG.git_reinit = False
self.todo_action = any_to_name(WritePRD)
return bool(self._rc.todo)