parent
4d15ee18b8
commit
8749a678fa
2 changed files with 3 additions and 3 deletions
|
@ -177,7 +177,7 @@ class PocketApp:
|
|||
'id': article['item_id'],
|
||||
'title': title,
|
||||
'url': url,
|
||||
'word_count': article['word_count'],
|
||||
'word_count': word_count,
|
||||
'reading_time': reading_time
|
||||
}
|
||||
|
||||
|
|
|
@ -38,14 +38,14 @@ def main():
|
|||
default='reading_time',
|
||||
prompt='Please provide your preferred sort field\n'
|
||||
'\tAvailable options are [id, reading_time]\n'
|
||||
'\tdefault: [reading_time]')
|
||||
'\tdefault:')
|
||||
@click.option('--words-per-minute', '-wpm',
|
||||
type=click.INT,
|
||||
default=180,
|
||||
prompt='Please specify your reading speed in words per minute\n'
|
||||
'\tYou can use this URL to estimate your reading time\n'
|
||||
'\thttp://www.readingsoft.com/\n'
|
||||
'\tdefault: 180 wpm',
|
||||
'\tdefault:',
|
||||
help='Used in calculating reading time for each article')
|
||||
def configure(consumer_key, sort_field, words_per_minute):
|
||||
request_token = pocket_app.get_request_token(consumer_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue