bug in updtneeded-suche, online-quellen erweitert
This commit is contained in:
parent
a71bc0a79a
commit
e8614b1242
4 changed files with 34 additions and 2 deletions
2
asset.py
2
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):
|
||||
|
|
|
@ -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', \
|
||||
|
|
|
@ -16,6 +16,35 @@ full copyright notices and license terms. -->
|
|||
<field name="rgxident">WKN:.* ISIN: ([A-Z,0-9]+).*</field>
|
||||
<field name="rgxidtype">isin</field>
|
||||
</record>
|
||||
<record model="investment.source" id="web_finanzen_fonds">
|
||||
<field name="name">www.finanzen.net - Fonds</field>
|
||||
<field name="url">https://www.finanzen.net/fonds/${isin}/tgt</field>
|
||||
<field name="nohtml" eval="True"/>
|
||||
<field name="rgxdate">\n\*\*Kursdatum\*\* (\d+\.\d+\.\d+).*\n</field>
|
||||
<field name="rgxdatefmt">%d.%m.%Y</field>
|
||||
<field name="rgxrate">\n\*\*Kurs\*\* (\d+,\d+) EUR.*\n</field>
|
||||
<field name="rgxdecimal">,</field>
|
||||
<field name="rgxident">WKN:.* ISIN: ([A-Z,0-9]+).*</field>
|
||||
<field name="rgxidtype">isin</field>
|
||||
</record>
|
||||
<record model="investment.source" id="web_finanzen_rohstoffe">
|
||||
<field name="name">www.finanzen.net - Rohstoffe</field>
|
||||
<field name="url">https://www.finanzen.net/rohstoffe/${symbol}</field>
|
||||
<field name="nohtml" eval="True"/>
|
||||
<field name="rgxdate">\nKurszeit (\d+\.\d+\.\d+) \d+:\d+:\d+.*\n</field>
|
||||
<field name="rgxdatefmt">%d.%m.%Y</field>
|
||||
<field name="rgxrate">\nKurs ([\d+\.]*\d+,\d+) USD\n</field>
|
||||
<field name="rgxdecimal">,</field>
|
||||
</record>
|
||||
<record model="investment.source" id="web_markets_ft_com">
|
||||
<field name="name">Financial Times UK</field>
|
||||
<field name="url">https://markets.ft.com/data/etfs/tearsheet/summary?s=${symbol}</field>
|
||||
<field name="nohtml" eval="True"/>
|
||||
<field name="rgxdate">Data delayed at least 15 minutes, as of (.*) \d+:\d+ GMT\.</field>
|
||||
<field name="rgxdatefmt">%b %d %Y</field>
|
||||
<field name="rgxrate">Price\D+([\d,]*\d+\.\d+)</field>
|
||||
<field name="rgxdecimal">.</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
|
@ -4,9 +4,11 @@ The COPYRIGHT file at the top level of this repository contains the
|
|||
full copyright notices and license terms. -->
|
||||
<form col="6">
|
||||
<label name="product" />
|
||||
<field name="product" />
|
||||
<field name="product" colspan="3"/>
|
||||
<label name="rate" />
|
||||
<field name="rate" symbol="currency"/>
|
||||
|
||||
<label id="labdate" colspan="4" string=" "/>
|
||||
<label name="date" />
|
||||
<field name="date"/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue