MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / get_recent

Method get_recent

pogom/models.py:499–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497
498 @staticmethod
499 def get_recent():
500 query = (WorkerStatus
501 .select()
502 .where((WorkerStatus.last_modified >=
503 (datetime.utcnow() - timedelta(minutes=5))))
504 .order_by(WorkerStatus.username)
505 .dicts())
506
507 status = []
508 for s in query:
509 status.append(s)
510
511 return status
512
513
514class Versions(flaskDb.Model):

Callers 1

raw_dataMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected