Update db.py
Browse files
db.py
CHANGED
|
@@ -81,7 +81,7 @@ def dropbox_upload_file(local_path, local_file, dropbox_file_path):
|
|
| 81 |
|
| 82 |
#local_file_path = pathlib.Path(local_path) / local_file
|
| 83 |
if isinstance(local_file, pd.DataFrame):
|
| 84 |
-
file=local_file.to_xml().encode()
|
| 85 |
# file=local_file.to_csv(index=False).encode()
|
| 86 |
else:
|
| 87 |
success,encoded=cv2.imencode('.png',local_file)
|
|
|
|
| 81 |
|
| 82 |
#local_file_path = pathlib.Path(local_path) / local_file
|
| 83 |
if isinstance(local_file, pd.DataFrame):
|
| 84 |
+
file=local_file.to_xml(index=False).encode()
|
| 85 |
# file=local_file.to_csv(index=False).encode()
|
| 86 |
else:
|
| 87 |
success,encoded=cv2.imencode('.png',local_file)
|