tangled
alpha
login
or
join now
edavis.dev
/
bsky-tools
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
sdw: don't delete old posts
Eric Davis
2 years ago
a8e9ceae
e079d8b9
-6
1 changed file
expand all
collapse all
unified
split
feeds
sevendirtywords.py
-6
feeds/sevendirtywords.py
···
50
dict(uri=post_uri, ts=ts)
51
)
52
53
-
def delete_old_posts(self):
54
-
self.db_cnx.execute(
55
-
"delete from posts where create_ts < unixepoch('-24 hours')"
56
-
)
57
-
58
def commit_changes(self):
59
self.logger.debug('committing changes')
60
-
self.delete_old_posts()
61
self.transaction_commit(self.db_cnx)
62
self.wal_checkpoint(self.db_cnx, 'RESTART')
63
···
50
dict(uri=post_uri, ts=ts)
51
)
52
0
0
0
0
0
53
def commit_changes(self):
54
self.logger.debug('committing changes')
0
55
self.transaction_commit(self.db_cnx)
56
self.wal_checkpoint(self.db_cnx, 'RESTART')
57