From 01a4d1ba3ef11c45d11857dbf19c78f3ee45c405 Mon Sep 17 00:00:00 2001 From: Yurii Biurher Date: Sat, 6 Jun 2020 19:02:03 +0300 Subject: [PATCH] fix: handle properly unicode error for fixing taskrun issue. Co-authored-by: Yurii Biurher --- cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.py b/cli.py index 2ee7502a6c..2157574cd6 100755 --- a/cli.py +++ b/cli.py @@ -159,7 +159,7 @@ def fix_task_run_created_date(): from datetime import datetime with app.app_context(): query = text( - '''SELECT id, created FROM task_run WHERE created LIKE ('\x%')''') + '''SELECT id, created FROM task_run WHERE created LIKE ('\\x%')''') results = db.engine.execute(query) task_runs = results.fetchall() for task_run in task_runs: