this repo has no description
0
fork

Configure Feed

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

feeds/rapidfire.py: don't commit after post insertion

+6 -7
+6 -7
feeds/rapidfire.py
··· 53 53 post_uri = f'at://{repo}/{path}' 54 54 ts = self.safe_timestamp(record['createdAt']).timestamp() 55 55 56 - with self.db_cnx: 57 - langs = record.get('langs') or [''] 58 - for lang in langs: 59 - self.db_cnx.execute( 60 - 'insert into posts (uri, create_ts, lang) values (:uri, :ts, :lang)', 61 - dict(uri=post_uri, ts=ts, lang=lang) 62 - ) 56 + langs = record.get('langs') or [''] 57 + for lang in langs: 58 + self.db_cnx.execute( 59 + 'insert into posts (uri, create_ts, lang) values (:uri, :ts, :lang)', 60 + dict(uri=post_uri, ts=ts, lang=lang) 61 + ) 63 62 64 63 def run_tasks_minute(self): 65 64 self.logger.debug('running minute tasks')