git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
second pass on all uses of base64encodings, so at to always return str like it was...
[plcapi.git]
/
PLC
/
Sessions.py
diff --git
a/PLC/Sessions.py
b/PLC/Sessions.py
index
8dacc2e
..
720565d
100644
(file)
--- a/
PLC/Sessions.py
+++ b/
PLC/Sessions.py
@@
-52,7
+52,7
@@
class Session(Row):
# Generate 32 random bytes
int8s = random.sample(range(0, 256), 32)
# Base64 encode their string representation
# Generate 32 random bytes
int8s = random.sample(range(0, 256), 32)
# Base64 encode their string representation
- self['session_id'] = base64.b64encode(bytes(int8s))
+ self['session_id'] = base64.b64encode(bytes(int8s))
.decode()
# Force insert
insert = True
# Force insert
insert = True