Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,7 @@ class FileHandler(FileSystemEventHandler):
|
|
39 |
"path": event.src_path,
|
40 |
"name": event.src_path.split('/')[-1]
|
41 |
}
|
|
|
42 |
websockets.broadcast(self.connected,json.dumps(new_event))
|
43 |
else:
|
44 |
with open(event.src_path, 'r', encoding='utf-8') as file:
|
|
|
39 |
"path": event.src_path,
|
40 |
"name": event.src_path.split('/')[-1]
|
41 |
}
|
42 |
+
print(new_event)
|
43 |
websockets.broadcast(self.connected,json.dumps(new_event))
|
44 |
else:
|
45 |
with open(event.src_path, 'r', encoding='utf-8') as file:
|