From f3233348009d5c207781a44c3e0dbbda9dfe26ca Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Wed, 23 Nov 2022 22:22:22 +0100 Subject: [PATCH] bug in updtneeded-suche, online-quellen erweitert --- asset.py | 2 +- onlinesource.py | 1 + sources_def.xml | 29 +++++++++++++++++++++++++++++ view/asset_form.xml | 4 +++- 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/asset.py b/asset.py index d6429e1..a6feab2 100644 --- a/asset.py +++ b/asset.py @@ -242,7 +242,7 @@ class Asset(ModelSQL, ModelView): ), clause[2]), ) - return [('id', '=', query)] + return [('id', 'in', query)] @classmethod def get_identifier_sql(cls, tab_asset): diff --git a/onlinesource.py b/onlinesource.py index cf9a858..125cf6b 100644 --- a/onlinesource.py +++ b/onlinesource.py @@ -30,6 +30,7 @@ sel_rgxdatefmt = [ ('%d.%m.%Y', 'dd.mm.yyyy'), ('%m/%d/%Y', 'mm/dd/yyyy'), ('%Y-%m-%d', 'yyyy-mm-dd'), + ('%b %d %Y', 'mon dd yyyy'), ] fields_check = ['url', 'nsin', 'isin', 'symbol', 'text', 'http_state', \ diff --git a/sources_def.xml b/sources_def.xml index 25e148c..2ff2d1d 100644 --- a/sources_def.xml +++ b/sources_def.xml @@ -16,6 +16,35 @@ full copyright notices and license terms. --> WKN:.* ISIN: ([A-Z,0-9]+).* isin + + www.finanzen.net - Fonds + https://www.finanzen.net/fonds/${isin}/tgt + + \n\*\*Kursdatum\*\* (\d+\.\d+\.\d+).*\n + %d.%m.%Y + \n\*\*Kurs\*\* (\d+,\d+) EUR.*\n + , + WKN:.* ISIN: ([A-Z,0-9]+).* + isin + + + www.finanzen.net - Rohstoffe + https://www.finanzen.net/rohstoffe/${symbol} + + \nKurszeit (\d+\.\d+\.\d+) \d+:\d+:\d+.*\n + %d.%m.%Y + \nKurs ([\d+\.]*\d+,\d+) USD\n + , + + + Financial Times UK + https://markets.ft.com/data/etfs/tearsheet/summary?s=${symbol} + + Data delayed at least 15 minutes, as of (.*) \d+:\d+ GMT\. + %b %d %Y + Price\D+([\d,]*\d+\.\d+) + . + diff --git a/view/asset_form.xml b/view/asset_form.xml index 2c322c7..a64c6a3 100644 --- a/view/asset_form.xml +++ b/view/asset_form.xml @@ -4,9 +4,11 @@ The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->