Skip to content

Commit 2478ce7

Browse files
committed
disable debug mode in fix project
1 parent bf8f802 commit 2478ce7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

database_manager.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -446,17 +446,17 @@ def fix_qgis_project_layers(self, database_name, schema, table, project_name, ne
446446

447447
# Step 3: DISABLED - Upload fixed content back to database
448448
# Commenting out the upload for debugging purposes
449-
self.progress_updated.emit("SKIPPING UPLOAD - Debug mode enabled")
449+
# self.progress_updated.emit("SKIPPING UPLOAD - Debug mode enabled")
450450
self.progress_updated.emit("Both original and modified QGS files have been saved for comparison")
451451

452-
# success = self._upload_project_content(database_name, schema, table, project_name, fixed_content)
453-
# if success:
454-
# self.operation_finished.emit(True, f"Successfully fixed project '{project_name}'")
455-
# else:
456-
# self.operation_finished.emit(False, "Failed to upload fixed project content")
452+
success = self._upload_project_content(database_name, schema, table, project_name, fixed_content)
453+
if success:
454+
self.operation_finished.emit(True, f"Successfully fixed project '{project_name}'")
455+
else:
456+
self.operation_finished.emit(False, "Failed to upload fixed project content")
457457

458458
# Instead, just report success with debug info
459-
self.operation_finished.emit(True, f"Debug mode: Project '{project_name}' processed successfully. Files saved for comparison. Upload was SKIPPED.")
459+
# self.operation_finished.emit(True, f"Debug mode: Project '{project_name}' processed successfully. Files saved for comparison. Upload was SKIPPED.")
460460

461461
except Exception as e:
462462
error_msg = f"Error fixing QGIS project: {str(e)}"

dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def setup_ui(self):
6262
self.tab_widget.addTab(self.connection_tab, "Connection")
6363
self.tab_widget.addTab(self.templates_tab, "Templates")
6464
self.tab_widget.addTab(self.databases_tab, "Databases")
65-
self.tab_widget.addTab(self.truncate_tab, "Truncate Tables")
6665
self.tab_widget.addTab(self.qgis_projects_tab, "Fix QGIS Project Layers")
66+
self.tab_widget.addTab(self.truncate_tab, "Truncate Tables")
6767
self.tab_widget.addTab(self.archive_project_tab, "Archive Project")
6868
self.tab_widget.addTab(self.clean_qgs_tab, "Clean QGS Files")
6969

0 commit comments

Comments
 (0)