Skip to content

Commit 138f190

Browse files
Add support for "rising" sort type
1 parent b947ee6 commit 138f190

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ Third argument specifies sort type.
101101
Following sort types are supported:
102102
```python
103103
SortType.HOT
104-
SortType.TOP
105104
SortType.NEW
105+
SortType.RISING
106+
SortType.TOP
106107
SortType.CONTROVERSIAL
107108
```
108109

@@ -122,8 +123,9 @@ General usage is the same as for subreddits.
122123
Sort types are available in `SortType` enum. These sort types are available:
123124
```python
124125
SortType.HOT
125-
SortType.TOP
126126
SortType.NEW
127+
SortType.RISING
128+
SortType.TOP
127129
SortType.CONTROVERSIAL
128130
```
129131

redditpythonapi/reddit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ class SortType(Enum):
1515
"""Enum with all viable sorting types"""
1616

1717
HOT = auto()
18-
TOP = auto()
1918
NEW = auto()
19+
RISING = auto()
20+
TOP = auto()
2021
CONTROVERSIAL = auto()
2122

2223

0 commit comments

Comments
 (0)