(self, conn, event)
| 61 | self.running = False |
| 62 | |
| 63 | def _get_id(self, conn, event): |
| 64 | cursor = conn.execute("SELECT * FROM records ORDER BY id DESC") |
| 65 | row = cursor.fetchone() |
| 66 | if event: |
| 67 | if row: |
| 68 | event.id = row['id'] |
| 69 | else: |
| 70 | event.id = 0 |
| 71 | self.injector.trigger(event) |
| 72 | |
| 73 | def _load(self, conn, records, event): |
| 74 | if self.position: |