this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feeds: mkdir -p /dev/shm/feedgens/

+5 -2
+2 -1
feeds/popular.py
··· 7 7 FEED_URI = 'at://did:plc:4nsduwlpivpuur4mqkbfvm6a/app.bsky.feed.generator/popular' 8 8 9 9 def __init__(self): 10 - if os.path.isdir('/dev/shm/feedgens/'): 10 + if os.path.isdir('/dev/shm/'): 11 + os.makedirs('/dev/shm/feedgens/') 11 12 self.db_cnx = sqlite3.connect('/dev/shm/feedgens/popular.db') 12 13 else: 13 14 self.db_cnx = sqlite3.connect('db/popular.db')
+3 -1
feeds/rapidfire.py
··· 8 8 FEED_URI = 'at://did:plc:4nsduwlpivpuur4mqkbfvm6a/app.bsky.feed.generator/rapidfire' 9 9 10 10 def __init__(self): 11 - if os.path.isdir('/dev/shm/feedgens/'): 11 + if os.path.isdir('/dev/shm/'): 12 + os.makedirs('/dev/shm/feedgens/') 12 13 self.db_cnx = sqlite3.connect('/dev/shm/feedgens/rapidfire.db') 13 14 else: 14 15 self.db_cnx = sqlite3.connect('db/rapidfire.db') 16 + 15 17 with self.db_cnx: 16 18 self.db_cnx.executescript( 17 19 "pragma journal_mode = WAL;"