`fix bug from merge

This commit is contained in:
Liu Zhicong
2023-09-17 18:40:37 -07:00
parent ff0495ca8e
commit d220f6b855
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -58,8 +58,12 @@ class CalenderEnvironment(Environment):
def stop(self):
self.is_run = False
async def _get_now(self) -> str:
def get_now(self,key:str)->str:
now = datetime.now()
formatted_time = now.strftime('%Y-%m-%d %H:%M:%S')
return formatted_time
async def _get_now(self) -> str:
now = datetime.now()
formatted_time = now.strftime('%Y-%m-%d %H:%M:%S')
return formatted_time