this repo has no description

nz-interesting: use transaction control

Changed files
+2
feeds
+2
feeds/norazone_interesting.py
···
return
if inner_record.get('uri') == TARGET_QUOTE_URI:
+
self.transaction_begin(self.db_cnx)
self.logger.debug('found quote post of target, adding to feed')
uri = 'at://{repo}/app.bsky.feed.post/{rkey}'.format(
repo = commit['did'],
···
def commit_changes(self):
self.logger.debug('committing changes')
+
self.transaction_commit(self.db_cnx)
self.wal_checkpoint(self.db_cnx, 'RESTART')
def serve_feed(self, limit, offset, langs):