Browse Source

Fixes #22

master
Abrax 3 years ago
parent
commit
4145a3fad4
2 changed files with 10 additions and 0 deletions
  1. 2
    0
      README.md
  2. 8
    0
      lizard.py

+ 2
- 0
README.md View File

@@ -18,6 +18,8 @@ These changes take effect with version 0.3 so be ready to update your scripts!
### 0.2 (in progress)

* Help message now shows version. (issue #24)
* New command: `rl` is refresh + list
* New command: `ro` is refresh + open in browser

### 0.1.1


+ 8
- 0
lizard.py View File

@@ -27,6 +27,8 @@ Available commands:
r - Refresh all threads and update database.
rc - Conservative refresh: Tries to refresh only threads which are likely to receive new replies, reducing
unnecessary network activity.
rl - Conservative refresh and list threads.
ro - Conservative refresh and open threads with new replies in browsed.
o - Open threads with new replies in the default browser. Will also update the "new replies"
field accordingly.
oa - Open all threads.
@@ -60,6 +62,12 @@ def main():
db_methods.refresh_all_threads()
elif command == 'rc':
db_methods.refresh_all_threads(conservative=True)
elif command == 'rl':
db_methods.refresh_all_threads(conservative=True)
db_methods.list_threads()
elif command == 'ro':
db_methods.refresh_all_threads(conservative=True)
db_methods.open_threads_with_new_replies()
elif command == 'o':
db_methods.open_threads_with_new_replies()
elif command == 'oa':

Loading…
Cancel
Save