File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -455,16 +455,16 @@ def main():
455
455
load_store ()
456
456
now = int (time .time ())
457
457
_debug ('main0: store=\n ' + json .dumps (store , indent = 4 ))
458
+ if 'session_id' not in store :
459
+ store ['session_id' ] = str (uuid .uuid4 ())
460
+ session_id = store ['session_id' ]
458
461
# if OK, check if refreshToken is required
459
462
if 'expires_at' in store and \
460
463
'Token' in store and \
461
464
'expires_in' in store ['Token' ] and \
462
465
'refresh_token' in store ['Token' ]:
463
466
expires_in = store ['Token' ]['expires_in' ]
464
467
expires_at = store ['expires_at' ]
465
- if 'session_id' not in store :
466
- store ['session_id' ] = str (uuid .uuid4 ())
467
- session_id = store ['session_id' ]
468
468
token = store ['Token' ]
469
469
_exp_at = datetime .fromtimestamp (expires_at ).strftime ('%Y-%m-%d %H:%M:%S' )
470
470
_exp_at2 = datetime .fromtimestamp (expires_at - 120 ).strftime ('%Y-%m-%d %H:%M:%S' )
You can’t perform that action at this time.
0 commit comments