diff options
author | meltland <[email protected]> | 2025-03-28 20:27:32 -0400 |
---|---|---|
committer | meltland <[email protected]> | 2025-03-28 20:27:32 -0400 |
commit | cdad432a685da18da74c64b939619b0e762de808 (patch) | |
tree | 5c1dae6ec20f74bd9557d3a57e1ff4712b256f2e | |
parent | cd1945e802cc589e7543f4e88096e8dfcab3721b (diff) |
unround times
-rw-r--r-- | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py index 49d6b49..57c8b6c 100644 --- a/main.py +++ b/main.py @@ -143,7 +143,7 @@ class util: if not re.fullmatch("[a-zA-Z0-9-_. ]{1,50}", client): client = "" ulist[username] = {"client": client, "status": "", "bot": bot} - client_data[conn_id] = {"username": username, "client": client, "websocket": websocket, "connected": round(time.time()), "bot": bot} + client_data[conn_id] = {"username": username, "client": client, "websocket": websocket, "connected": time.time(), "bot": bot} data = db.acc.get(username) del data["secure"] return data @@ -483,7 +483,7 @@ async def handler(websocket): continue data = { "_id": str(uuid.uuid4()), - "created": round(time.time()), + "created": time.time(), "content": r["content"], "attachments": attachments } @@ -517,7 +517,7 @@ async def handler(websocket): replies.append(post) data = { "_id": str(uuid.uuid4()), - "created": round(time.time()), + "created": ime.time(), "content": r["content"], "replies": replies, "attachments": attachments, |