tariochbctools 1.5.1__py2.py3-none-any.whl → 1.5.3__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tariochbctools/importers/general/mailAdapterImporter.py +2 -0
- tariochbctools/importers/postfinance/importer.py +3 -2
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/METADATA +1 -1
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/RECORD +8 -8
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/WHEEL +0 -0
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/entry_points.txt +0 -0
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/licenses/LICENSE.txt +0 -0
- {tariochbctools-1.5.1.dist-info → tariochbctools-1.5.3.dist-info}/top_level.txt +0 -0
@@ -30,6 +30,8 @@ class MailAdapterImporter(Importer):
|
|
30
30
|
for msg in mailbox.fetch():
|
31
31
|
processed = False
|
32
32
|
for att in msg.attachments:
|
33
|
+
if not att.filename:
|
34
|
+
continue
|
33
35
|
with tempfile.TemporaryDirectory() as tmpdirname:
|
34
36
|
attFileName = path.join(tmpdirname, att.filename)
|
35
37
|
with open(attFileName, "wb") as attFile:
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import csv
|
2
2
|
import logging
|
3
3
|
import re
|
4
|
-
from datetime import
|
4
|
+
from datetime import timedelta
|
5
5
|
from decimal import Decimal
|
6
6
|
|
7
7
|
import beangulp
|
8
|
+
import dateutil.parser
|
8
9
|
from beancount.core import data
|
9
10
|
|
10
11
|
|
@@ -31,7 +32,7 @@ class Importer(beangulp.Importer):
|
|
31
32
|
for row in reader:
|
32
33
|
try:
|
33
34
|
book_date_str, text, credit, debit, val_date, balance_str = tuple(row)
|
34
|
-
book_date =
|
35
|
+
book_date = dateutil.parser.parse(book_date_str).date()
|
35
36
|
if credit:
|
36
37
|
amount = data.Amount(Decimal(credit), self.currency)
|
37
38
|
elif debit:
|
@@ -13,7 +13,7 @@ tariochbctools/importers/cembrastatement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
13
13
|
tariochbctools/importers/cembrastatement/importer.py,sha256=2vY7bBsVaYoluVO3iGbhcoP2N9eQMYSzjxFgLTCeLT0,3915
|
14
14
|
tariochbctools/importers/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
tariochbctools/importers/general/deduplication.py,sha256=5appwJTczAws2jQcN1Bk-nanOHAOtJf_WJzU7i3fIR0,433
|
16
|
-
tariochbctools/importers/general/mailAdapterImporter.py,sha256=
|
16
|
+
tariochbctools/importers/general/mailAdapterImporter.py,sha256=Ap3QdQxn1J3WvbyugvN5DKz8STM6Fh7YXag06MURiYg,1845
|
17
17
|
tariochbctools/importers/general/mt940importer.py,sha256=KkgA_lpSBeGKgBGCGaOPWfaThyrXpB4pGObCbKfSaFc,2204
|
18
18
|
tariochbctools/importers/general/priceLookup.py,sha256=QjwhxOYuEATwtaHnJ9OKl3D6JcnDJQS_5Wo7dQmFDFM,865
|
19
19
|
tariochbctools/importers/ibkr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -26,7 +26,7 @@ tariochbctools/importers/nordigen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
26
26
|
tariochbctools/importers/nordigen/importer.py,sha256=lNAcuv-iDQfb82xVRi7--ApvCLCBLDGJLXX7awhDdvw,3953
|
27
27
|
tariochbctools/importers/nordigen/nordigen_config.py,sha256=GHSdyBpjbAscn-Kob0n4Xrp2L0yjc7vExshwt7O60hM,6468
|
28
28
|
tariochbctools/importers/postfinance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
|
-
tariochbctools/importers/postfinance/importer.py,sha256=
|
29
|
+
tariochbctools/importers/postfinance/importer.py,sha256=Tr5QD2WPKWWdafJ5qjveLRJxXO-2SBBklJPHE1jMI_c,2529
|
30
30
|
tariochbctools/importers/quickfile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
tariochbctools/importers/quickfile/importer.py,sha256=HgS7lSi7egxkj-IWd77MS-vhepYNCRXZwVbeCornkzg,6479
|
32
32
|
tariochbctools/importers/radicant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -53,9 +53,9 @@ tariochbctools/plugins/check_portfolio_sum.py,sha256=naJ2j6BFpQhJhT2c-gfjyIdcYe0
|
|
53
53
|
tariochbctools/plugins/generate_base_ccy_prices.py,sha256=4CDzUosjMWCZfsBJMLrf-i5WNCHexI2rdm5vIDYW-AI,1314
|
54
54
|
tariochbctools/plugins/prices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
tariochbctools/plugins/prices/ibkr.py,sha256=GYCjnlF-MK-ZFPEr0M6T4iO3Etq0tMmrMlsHGInXUO8,1405
|
56
|
-
tariochbctools-1.5.
|
57
|
-
tariochbctools-1.5.
|
58
|
-
tariochbctools-1.5.
|
59
|
-
tariochbctools-1.5.
|
60
|
-
tariochbctools-1.5.
|
61
|
-
tariochbctools-1.5.
|
56
|
+
tariochbctools-1.5.3.dist-info/licenses/LICENSE.txt,sha256=VR2hkz3p9Sw4hSXc7S5iZTOXGeV4h-i8AO_q0zEmtkE,1074
|
57
|
+
tariochbctools-1.5.3.dist-info/METADATA,sha256=8syjW4Wql8arNUPXryirRwufVz34RHWtiQ5cr7nw_Qg,2180
|
58
|
+
tariochbctools-1.5.3.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
59
|
+
tariochbctools-1.5.3.dist-info/entry_points.txt,sha256=bo7wO1u-PIDHNuqsTEekC56VCAmn2i2vTRcKXxqc770,158
|
60
|
+
tariochbctools-1.5.3.dist-info/top_level.txt,sha256=CiA_NepCI6zDNsaORA55zmpuJFSnTvLESraIL13xiOQ,15
|
61
|
+
tariochbctools-1.5.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|