diff options
author | Martin Ashby <martin@ashbysoft.com> | 2018-05-17 19:17:56 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2018-05-17 19:17:56 +0000 |
commit | e4e70b93d0756a7201c8a9f3f32721b225ae059b (patch) | |
tree | 985990b4334e5effe873aa9c1603a44b3a6377b6 | |
parent | 10e7ce5764b3b456e1f909cd6b6a90f076c2e014 (diff) | |
download | unicornpaint-e4e70b93d0756a7201c8a9f3f32721b225ae059b.tar.gz unicornpaint-e4e70b93d0756a7201c8a9f3f32721b225ae059b.tar.bz2 unicornpaint-e4e70b93d0756a7201c8a9f3f32721b225ae059b.tar.xz unicornpaint-e4e70b93d0756a7201c8a9f3f32721b225ae059b.zip |
Fixed serialization problem with numpy array
-rw-r--r-- | server.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ def send_state(): global all_clients state = { "saves": os.listdir(SAVES_DIR), - "pixels": unicorn.get_pixels() + "pixels": unicorn.get_pixels().tolist() } stateJson = json.dumps(state) for client in all_clients: @@ -106,4 +106,4 @@ def main(): if __name__=="__main__": main() -
\ No newline at end of file + |