Skip to content

Commit

Permalink
fix: handle properly unicode error for fixing taskrun issue.
Browse files Browse the repository at this point in the history
Co-authored-by: Yurii Biurher <[email protected]>
  • Loading branch information
jokruger and jokruger authored Jun 6, 2020
1 parent 865991f commit 01a4d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 01a4d1b

Please sign in to comment.