2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-01 21:40:32 +00:00
This commit is contained in:
quadrismegistus 2020-08-20 21:16:18 +01:00
parent 72fc4e9a36
commit 6d7520c761

View File

@ -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