Skip to content
Snippets Groups Projects
Commit 5cb261dd authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

communication: Add remove_data

parent a52d6b57
No related branches found
No related tags found
No related merge requests found
...@@ -228,4 +228,10 @@ class DownloadServer(FuncCaller): ...@@ -228,4 +228,10 @@ class DownloadServer(FuncCaller):
out[filename] = f.read() out[filename] = f.read()
return out return out
@server_exec()
async def remove_data(self, dt: datetime):
path = "data/realtime/"+dt_to_path(dt)
out = {}
for filename in os.listdir(path):
os.remove(path+'/'+filename)
os.rmdir(path)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment