offline-trap.py (177B)
1 from datetime import timedelta 2 from server.app import db 3 from server.models import Trap 4 5 for trap in Trap.query: 6 trap.last_status -= timedelta(hours=1) 7 8 db.session.commit()
![]() | muizenvalObserve mouse traps remotely |
Log | Files | Refs |