commit manually since autocommit=True might only work for new keys
parent
1f602aa14a
commit
826a631fd1
|
@ -99,6 +99,7 @@ class DramaClient:
|
|||
return []
|
||||
|
||||
db["last_processed_id"] = max(c["id"] for c in comments)
|
||||
db.commit()
|
||||
|
||||
# New comments may have pushed others to page n+1 while fetching.
|
||||
deduped_comments = {c["id"]: c for c in comments}.values()
|
||||
|
|
Loading…
Reference in New Issue