fixed printing colors

This commit is contained in:
Lorenze Jay
2024-07-15 09:29:11 -07:00
parent 7178f8b765
commit e802a2b866

View File

@@ -112,14 +112,10 @@ class KickoffTaskOutputsSQLiteStorage:
if cursor.rowcount == 0: if cursor.rowcount == 0:
self._printer.print( self._printer.print(
f"No row found with task_index {task_index}. No update performed.", f"No row found with task_index {task_index}. No update performed.",
color="yellow", color="red",
)
else:
self._printer.print(
f"Updated row with task_index {task_index}.", color="green"
) )
except sqlite3.Error as e: except sqlite3.Error as e:
self._printer.print(f"UPDATE ERROR: {e}", color="red") self._printer.print(f"UPDATE KICKOFF TASK OUTPUTS ERROR: {e}", color="red")
def load(self) -> Optional[List[Dict[str, Any]]]: def load(self) -> Optional[List[Dict[str, Any]]]:
try: try: