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
 
120
 
121
     def _description(self):
121
     def _description(self):
122
         type_, message, party, number, ks, vs, ss = self._scrap
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
         out = []
126
         out = []
125
         if type_:
127
         if type_:
126
             out.append(type_)
128
             out.append(type_)