diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 44f2167..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,8 +0,0 @@ -// Place your settings in this file to overwrite default and user settings. -{ - // Controls the rendering size of tabs in characters. Accepted values: "auto", 2, 4, 6, etc. If set to "auto", the value will be guessed when a file is opened. - "editor.tabSize": "4", - - // Controls if the editor will insert spaces for tabs. Accepted values: "auto", true, false. If set to "auto", the value will be guessed when a file is opened. - "editor.insertSpaces": "true" -} \ No newline at end of file diff --git a/py8chan/post.py b/py8chan/post.py index 7e3c45b..7b1409c 100644 --- a/py8chan/post.py +++ b/py8chan/post.py @@ -51,6 +51,7 @@ def is_op(self): @property def post_id(self): return self._data.get('no') + number = num = no = post_number = post_id # allows post_id to exist as multiple different names @property def resto(self): @@ -156,7 +157,7 @@ def __repr__(self): return '' % ( self._thread._board.name, self._thread.id, - self.post_number, + self.post_id, self.has_file, self.has_extra_files ) diff --git a/py8chan/thread.py b/py8chan/thread.py index ae90c4b..5dbeacd 100644 --- a/py8chan/thread.py +++ b/py8chan/thread.py @@ -80,9 +80,9 @@ def _from_json(cls, json, board, id=None): if id is not None: if not t.replies: - t.last_reply_id = t.topic.post_number + t.last_reply_id = t.topic.post_id else: - t.last_reply_id = t.replies[-1].post_number + t.last_reply_id = t.replies[-1].post_id else: t.want_update = True