mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
Use unix timestamp as session id
This commit is contained in:
@@ -186,10 +186,7 @@ def start_session():
|
|||||||
state["start_at"] = state["last_seen_at"] = start_at
|
state["start_at"] = state["last_seen_at"] = start_at
|
||||||
else:
|
else:
|
||||||
state["last_seen_at"] = int(time.time())
|
state["last_seen_at"] = int(time.time())
|
||||||
|
return start_at
|
||||||
session_hash = hashlib.sha1(hashlib_encode_data(app.get_cid()))
|
|
||||||
session_hash.update(hashlib_encode_data(start_at))
|
|
||||||
return session_hash.hexdigest()
|
|
||||||
|
|
||||||
|
|
||||||
def on_platformio_start(cmd_ctx):
|
def on_platformio_start(cmd_ctx):
|
||||||
|
Reference in New Issue
Block a user