From e5bb20890ca205208da761f35910a75578d8888d Mon Sep 17 00:00:00 2001 From: Castro0o Date: Wed, 4 Mar 2020 12:34:27 +0100 Subject: [PATCH] todos --- functions.py | 2 +- query2html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.py b/functions.py index ce6d4a2..e376e46 100644 --- a/functions.py +++ b/functions.py @@ -14,7 +14,7 @@ def pandoc(pwd, content, format_in, format_out): # tmp files mw_tmp_fn = os.path.join(pwd, '.mediawiki_content') - html_tmp_fn = os.path.join(pwd, '.html_content') # TODO: join with pw + html_tmp_fn = os.path.join(pwd, '.html_content') for fn in [mw_tmp_fn, html_tmp_fn ]: if os.path.isfile(fn) is False: os.mknod(fn) # create them if not in dir diff --git a/query2html.py b/query2html.py index 457f5f5..d00dc70 100644 --- a/query2html.py +++ b/query2html.py @@ -25,6 +25,7 @@ p.add_argument("--order", "-o", metavar='', help='Order of sorting conditions. Should same amount as the --sort properties') p.add_argument('--limit', '-l', help='(optional) Limit the number of returned ' 'items') +# TODO: GET limit to work.Perhaps with a site.raw_api method p.add_argument('--dry', '-d', action='store_true', help='dry-run: will only show the query but not run it') @@ -118,7 +119,6 @@ for answer in site.ask(query): all_document_parts = '' # Reset all_document_parts # add info to documentslist for index creation - # TODO: possibly needs to be a SortedDict documentslist.append({'file': htmlpage_fn, 'title': printout_dict.get('Title'), 'date': printout_dict.get('Date'),