mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
create mongo connection on init instead of in class definition
This commit is contained in:
parent
2b86d0c20b
commit
4a8498db27
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,6 @@ class Window(QtWidgets.QDialog):
|
|||
:param parent: Main widget that cares about all GUIs
|
||||
:type parent: QtWidgets.QMainWindow
|
||||
"""
|
||||
_db = AvalonMongoDB()
|
||||
_jobs = {}
|
||||
valid_family = False
|
||||
valid_components = False
|
||||
|
|
@ -32,6 +31,7 @@ class Window(QtWidgets.QDialog):
|
|||
|
||||
def __init__(self, pyblish_paths, parent=None):
|
||||
super(Window, self).__init__(parent=parent)
|
||||
self._db = AvalonMongoDB()
|
||||
self._db.install()
|
||||
|
||||
self.pyblish_paths = pyblish_paths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue