瀏覽代碼

Just remove "DATUM PROVEDENÍ TRANSAKCE" altogether

Alois Mahdal 5 年之前
父節點
當前提交
5f4ada05e7
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      gcconv.py

+ 3
- 1
gcconv.py 查看文件

@@ -120,7 +120,9 @@ class MbankTransaction(BaseTransaction):
120 120
 
121 121
     def _description(self):
122 122
         type_, message, party, number, ks, vs, ss = self._scrap
123
-        message = message.replace(u' DATUM PROVEDENÍ TRANSAKCE: ', '; DATUM: ')
123
+        dpt = u' DATUM PROVEDENÍ TRANSAKCE: '
124
+        if dpt in message:
125
+            message, __ = message.split(dpt)
124 126
         out = []
125 127
         if type_:
126 128
             out.append(type_)