■ ■ ■ ■ ■ ■
changedetectionio/store.py
| skipped 300 lines |
301 | 301 | | del_timestamps.append(timestamp) |
302 | 302 | | changes_removed += 1 |
303 | 303 | | |
304 | | - | if not limit_timestamp: |
305 | | - | self.data['watching'][uuid]['last_checked'] = 0 |
306 | | - | self.data['watching'][uuid]['last_changed'] = 0 |
307 | | - | self.data['watching'][uuid]['previous_md5'] = 0 |
| 304 | + | if not limit_timestamp: |
| 305 | + | self.data['watching'][uuid]['last_checked'] = 0 |
| 306 | + | self.data['watching'][uuid]['last_changed'] = 0 |
| 307 | + | self.data['watching'][uuid]['previous_md5'] = "" |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | for timestamp in del_timestamps: |
| skipped 12 lines |
323 | 323 | | content = fp.read() |
324 | 324 | | self.data['watching'][uuid]['previous_md5'] = hashlib.md5(content).hexdigest() |
325 | 325 | | except (FileNotFoundError, IOError): |
326 | | - | self.data['watching'][uuid]['previous_md5'] = False |
| 326 | + | self.data['watching'][uuid]['previous_md5'] = "" |
327 | 327 | | pass |
328 | 328 | | |
329 | 329 | | self.needs_write = True |
| skipped 116 lines |