mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
started working on #343
This commit is contained in:
@ -263,6 +263,9 @@ class StatusFile(object):
|
||||
def newer_then_minutes(self, minutes):
|
||||
return self._updated is not None and ((datetime.now() - self._updated).seconds / 60) < minutes
|
||||
|
||||
def newer_then_hours(self, hours):
|
||||
return self._updated is not None and ((datetime.now() - self._updated).seconds / (60*60)) < hours
|
||||
|
||||
def newer_then_days(self, days):
|
||||
return self._updated is not None and (datetime.now() - self._updated).days < days
|
||||
|
||||
|
Reference in New Issue
Block a user