Skip to content

Commit 7658b57

Browse files
committed
0.1.1
add bgcode support
1 parent bd2a935 commit 7658b57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

octoprint_googledrivefiles/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def sync_files(self):
125125
folder_id = self.get_create_remote_folder(drive, self.config["download_folder"])
126126
tree = Tree()
127127
tree.create_node("Google", folder_id or "root")
128-
google_file_list = drive.ListFile({'q': "trashed=false and (title contains '.gcode' or mimeType='application/vnd.google-apps.folder')", 'orderBy': 'createdDate'}).GetList()
128+
google_file_list = drive.ListFile({'q': "trashed=false and (title contains '.gcode' or title contains '.bgcode' or mimeType='application/vnd.google-apps.folder')", 'orderBy': 'createdDate'}).GetList()
129129
for google_file in google_file_list:
130130
if len(google_file['parents']) > 0:
131131
if tree.get_node(google_file['id']) is None:
@@ -140,7 +140,7 @@ def sync_files(self):
140140
full_path = ""
141141
for folder_identifier in leave_path:
142142
full_path += "/{}".format(tree.get_node(folder_identifier).tag)
143-
if full_path.lower().endswith(".gcode") or full_path.lower().endswith(".gco"):
143+
if full_path.lower().endswith(".gcode") or full_path.lower().endswith(".gco") or full_path.lower().endswith(".bgcode"):
144144
google_file_paths[full_path[1:]] = tree.get_node(folder_identifier).data
145145

146146
for file in google_file_paths:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "Google Drive Files"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.1.0"
17+
plugin_version = "0.1.1"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)