Skip to content

Commit 1d8fd2e

Browse files
committed
declare toggle user
1 parent d4bf152 commit 1d8fd2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/build_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,7 @@ def timeline(ampache_url, ampache_api, username, limit = 0, since = 0, api_forma
546546
""" toggle_follow
547547
def toggle_follow(ampache_url, ampache_api, username, api_format = 'xml'):
548548
"""
549-
if ampache_user == 'user':
550-
toggle = 'generic'
549+
toggle = 'generic'
551550
if ampache_user == 'generic':
552551
toggle = 'user'
553552
togglefollow = ampache.toggle_follow(ampache_url, ampache_api, toggle, api_format)
@@ -586,3 +585,4 @@ def goodbye(ampache_url, ampache_api, api_format = 'xml'):
586585

587586
build_docs(ampache_url, ampache_api,ampache_user, 'xml')
588587
build_docs(ampache_url, ampache_api,ampache_user, 'json')
588+

run_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,7 @@ def timeline(ampache_url, ampache_api, username, limit = 0, since = 0, api_forma
687687
""" toggle_follow
688688
def toggle_follow(ampache_url, ampache_api, username, api_format = 'xml'):
689689
"""
690-
if ampache_user == 'user':
691-
toggle = 'generic'
690+
toggle = 'generic'
692691
if ampache_user == 'generic':
693692
toggle = 'user'
694693
#togglefollow = ampache.toggle_follow(ampache_url, ampache_api, toggle, api_format))
@@ -727,3 +726,4 @@ def goodbye(ampache_url, ampache_api, api_format = 'xml'):
727726

728727
run_tests(ampache_url, ampache_api,ampache_user, 'xml')
729728
run_tests(ampache_url, ampache_api,ampache_user, 'json')
729+

0 commit comments

Comments
 (0)