this repo has no description

feeds/rapidfire.py: drop the /dev/shm stuff and re-enable the synchronous pragma

+1 -10
+1 -10
feeds/rapidfire.py
··· 1 1 import logging 2 - import os 3 2 4 3 import apsw 5 4 import apsw.ext ··· 14 13 def __init__(self): 15 14 super().__init__() 16 15 17 - db_fname = '' 18 - if os.path.isdir('/dev/shm/'): 19 - os.makedirs('/dev/shm/feedgens/', exist_ok=True) 20 - db_fname = '/dev/shm/feedgens/rapidfire.db' 21 - else: 22 - db_fname = 'db/rapidfire.db' 23 - 24 - self.db_cnx = apsw.Connection(db_fname) 16 + self.db_cnx = apsw.Connection('db/rapidfire.db') 25 17 self.db_cnx.pragma('journal_mode', 'WAL') 26 - self.db_cnx.pragma('synchronous', 'OFF') 27 18 self.db_cnx.pragma('wal_autocheckpoint', '0') 28 19 29 20 with self.db_cnx: