fix bug when iterating over all existing posts in a thread (#23)

* fix get posts

* remove tail/head and fix posts command
This commit is contained in:
Dave Gallant
2019-09-15 23:21:40 -04:00
committed by GitHub
parent 57d3983bb4
commit be92e5773d
13 changed files with 140 additions and 168 deletions

8
rfd/utils.py Normal file
View File

@@ -0,0 +1,8 @@
"""This module provides utility functions that are used within rfd"""
def is_int(number):
try:
int(number)
return True
except ValueError:
return False