Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Delete orphaned method
Browse files Browse the repository at this point in the history
  • Loading branch information
expectocode committed Jun 2, 2018
1 parent 2c88a23 commit e6b9dce
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions telegram_export/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,20 +698,6 @@ def get_message_count(self, context_id):
).fetchone()
return tuple_[0] if tuple_ else 0

def update_last_dumped_message(self, context_id, msg_id):
"""Updates the last dumped message"""

try:
self.conn.execute(
"INSERT OR REPLACE INTO LastMessage VALUES (?,?)",
(context_id, msg_id)
)
self.conn.commit()
except sqlite3.IntegrityError as error:
self.conn.rollback()
logger.error("Integrity error: %s", str(error))
raise

def get_resume(self, context_id):
"""
For the given context ID, return a tuple consisting of the offset
Expand Down

0 comments on commit e6b9dce

Please sign in to comment.