add order for selecting objects
This commit is contained in:
parent
e3deead94b
commit
f25ee6d198
@ -9,7 +9,7 @@ log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def process_client_data():
|
||||
data = ClientData.objects.all()
|
||||
data = ClientData.objects.all().order_by('last_seen')
|
||||
for cd in data:
|
||||
client = Client.objects.get(uuid=cd.uuid)
|
||||
client.last_seen = cd.last_seen
|
||||
|
Loading…
Reference in New Issue
Block a user