Skip to content

Commit 8496b8a

Browse files
committed
Fixing get-comment and removing extra variable
1 parent d3ee41e commit 8496b8a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

imgur-python/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,10 @@ def handle_unauthorized_commands(factory, action):
219219
req = factory.build_request(('album', id))
220220

221221
if action == 'get-comment':
222-
(item_hash, cid) = sys.argv[2:4]
223-
req = factory.build_request(('gallery', item_hash, 'comments', cid))
222+
cid = sys.argv[2]
223+
req = factory.build_request(('comment', cid))
224224

225225
if action == 'get-gallery':
226-
imgur = factory.build_api()
227226
id = sys.argv[2]
228227
req = factory.build_request(('gallery', id))
229228

0 commit comments

Comments
 (0)