Browse Source

Just remove "DATUM PROVEDENÍ TRANSAKCE" altogether

Alois Mahdal 5 years ago
parent
commit
5f4ada05e7
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      gcconv.py

+ 3
- 1
gcconv.py View File

@@ -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_)