feat: Implement online user count from nodes

This commit is contained in:
ReturnFI
2025-10-30 19:08:44 +00:00
parent 2cf7bb6cb3
commit f7f7debacd
2 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,7 @@ async def receive_node_traffic(body: NodesTrafficPayload):
'upload_bytes': new_upload,
'download_bytes': new_download,
'status': user_traffic.status,
'online_count': user_traffic.online_count,
}
if not db_user.get('account_creation_date') and user_traffic.account_creation_date:

View File

@ -97,6 +97,7 @@ class NodeUserTraffic(BaseModel):
upload_bytes: int
download_bytes: int
status: str
online_count: int
account_creation_date: Optional[str] = None
@field_validator('account_creation_date')