Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Nov 16, 2023
1 parent 1aee6bf commit 6eddd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/vorta/store/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
ArchiveModel,
BackupProfileModel,
EventLogModel,
ExclusionModel,
RepoModel,
SettingsModel,
SourceFileModel,
Expand Down Expand Up @@ -251,6 +250,7 @@ def run_migrations(current_schema, db_connection):
),
)


def _apply_schema_update(current_schema, version_after, *operations):
with DB.atomic():
migrate(*operations)
Expand Down
7 changes: 1 addition & 6 deletions src/vorta/views/exclude_dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import json
import os
import sys

from PyQt6 import uic
from PyQt6.QtCore import QModelIndex, QObject, Qt
from PyQt6.QtGui import QStandardItem, QStandardItemModel
Expand All @@ -14,7 +10,7 @@
)

from vorta.i18n import translate
from vorta.store.models import ExclusionModel, BackupProfileModel
from vorta.store.models import ExclusionModel
from vorta.utils import get_asset
from vorta.views.utils import get_colored_icon, get_exclusion_presets

Expand All @@ -37,7 +33,6 @@ def setData(self, index: QModelIndex, value, role: int = ...) -> bool:
self.removeRow(index.row())
return True
if role == Qt.ItemDataRole.EditRole and ExclusionModel.get_or_none(name=value, profile=self.profile):
print('basdf')
QMessageBox.critical(
self.parent(),
'Error',
Expand Down

0 comments on commit 6eddd35

Please sign in to comment.