From 7ed08b4c2f280599f20d92c550d1d4d243ebb7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 7 Aug 2020 22:34:24 +0800 Subject: [PATCH] Revised the get_summary_categories() utility to look for bi-directional travel summary text in the accounting application. --- accounting/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/utils.py b/accounting/utils.py index 1437533..9a28606 100644 --- a/accounting/utils.py +++ b/accounting/utils.py @@ -392,7 +392,7 @@ def get_summary_categories(): output_field=CharField()), cat_type=Case( When(summary__regex=".+—.+—.+→.+", then=Value("bus")), - When(summary__regex=".+—.+→.+", then=Value("travel")), + When(summary__regex=".+—.+[→↔].+", then=Value("travel")), default=Value("general"), output_field=CharField()), category=Left("summary",