mirror of
https://github.com/tildeclub/ttbp.git
synced 2026-01-24 02:40:18 +00:00
prepping subs config
This commit is contained in:
@@ -76,6 +76,7 @@ MAIN_FEELS = os.path.join(PATH, 'entries')
|
||||
BURIED_FEELS = os.path.join(PATH, 'buried')
|
||||
NOPUB = os.path.join(USER_CONFIG, 'nopub')
|
||||
BACKUPS = os.path.join(PATH, 'backups')
|
||||
SUBS = os.path.join(USER_CONFIG, 'subs')
|
||||
|
||||
## UI
|
||||
|
||||
|
||||
@@ -700,6 +700,10 @@ def subscription_handler(intro=""):
|
||||
submenu for managing subscriptions
|
||||
'''
|
||||
|
||||
if not os.path.exists(config.SUBS):
|
||||
subprocess.call(["touch", config.SUBS])
|
||||
subprocess.call(["chmod", "600", config.SUBS])
|
||||
|
||||
menuOptions = [
|
||||
"view subscribed feed",
|
||||
"manage subscriptions"
|
||||
|
||||
Reference in New Issue
Block a user