Skip to content

Commit

Permalink
appscheduler: reduce verbosity when removing entries
Browse files Browse the repository at this point in the history
  • Loading branch information
eras committed Oct 31, 2023
1 parent 5e42b20 commit b1f4526
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion teslabot/appscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ async def _command_ls(self, context: CommandContext, valid: Tuple[()]) -> None:
async def _command_rm(self, context: CommandContext,
id: int) -> None:
def matches(entry: scheduler.Entry[SchedulerContext]) -> bool:
logger.debug(f"Comparing {entry.context.info.id} vs {id}")
return entry.context.info.id == id
async def remove_entry(entries: List[scheduler.Entry[SchedulerContext]]) -> Tuple[List[scheduler.Entry[SchedulerContext]], bool]:
new_entries = [entry for entry in entries if not matches(entry)]
Expand Down

0 comments on commit b1f4526

Please sign in to comment.