mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-01 21:40:32 +00:00
??
This commit is contained in:
parent
72fc4e9a36
commit
6d7520c761
@ -138,7 +138,11 @@ class HalfForgetfulStorage(ForgetfulStorage):
|
||||
self.set(key,value)
|
||||
|
||||
def set(self, key,value):# try:
|
||||
self.log(f'key: {key},\nvalue:{value}')
|
||||
time_b=str(time.monotonic()).encode()
|
||||
if type(value)!=bytes:
|
||||
value = str(json.dumps(value)).encode()
|
||||
|
||||
newdat = BSEP_ST.join([time_b, value])
|
||||
self.data[key]=newdat
|
||||
# return True
|
||||
|
Loading…
Reference in New Issue
Block a user