From 413051037749da90f03055bcd305c82b1ee90afd Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 1 Mar 2016 23:34:05 +0100 Subject: Add script to read trades --- wikifolio-rss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wikifolio-rss') diff --git a/wikifolio-rss b/wikifolio-rss index e285f06..5034dd7 100755 --- a/wikifolio-rss +++ b/wikifolio-rss @@ -5,13 +5,14 @@ import logging import wikifolio import wikifolio.rss +import os logging.basicConfig(level=logging.INFO) if len(sys.argv) == 2 and os.path.exists(sys.argv[1]): filename = sys.argv[1] name = os.path.basename(filename) - name = name[:name.find('.')] + name, _ = os.path.splitext(name) cert = wikifolio.get_id_from_name(name) comments = wikifolio.get_comments(cert) with open(filename, "w") as f: -- cgit v1.2.1