mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
SyncServer - changed order in Status
This commit is contained in:
parent
ae7aeab2f7
commit
0a7ca6bed4
1 changed files with 6 additions and 6 deletions
|
|
@ -22,8 +22,8 @@ log = PypeLogger().get_logger("SyncServer")
|
||||||
|
|
||||||
STATUS = {
|
STATUS = {
|
||||||
0: 'In Progress',
|
0: 'In Progress',
|
||||||
1: 'Failed',
|
1: 'Queued',
|
||||||
2: 'Queued',
|
2: 'Failed',
|
||||||
3: 'Paused',
|
3: 'Paused',
|
||||||
4: 'Synced OK',
|
4: 'Synced OK',
|
||||||
-1: 'Not available'
|
-1: 'Not available'
|
||||||
|
|
@ -445,7 +445,7 @@ class SyncRepresentationWidget(QtWidgets.QWidget):
|
||||||
else:
|
else:
|
||||||
self.site_name = remote_site
|
self.site_name = remote_site
|
||||||
|
|
||||||
if self.item.state in [STATUS[0], STATUS[2]]:
|
if self.item.state in [STATUS[0], STATUS[1]]:
|
||||||
action = QtWidgets.QAction("Pause")
|
action = QtWidgets.QAction("Pause")
|
||||||
actions_mapping[action] = self._pause
|
actions_mapping[action] = self._pause
|
||||||
menu.addAction(action)
|
menu.addAction(action)
|
||||||
|
|
@ -1212,12 +1212,12 @@ class SyncRepresentationModel(QtCore.QAbstractTableModel):
|
||||||
{'$gte': ['$failed_local_tries', 3]},
|
{'$gte': ['$failed_local_tries', 3]},
|
||||||
{'$gte': ['$failed_remote_tries', 3]}
|
{'$gte': ['$failed_remote_tries', 3]}
|
||||||
]},
|
]},
|
||||||
'then': 1},
|
'then': 2}, # Failed
|
||||||
{
|
{
|
||||||
'case': {
|
'case': {
|
||||||
'$or': [{'$eq': ['$avg_progress_remote', 0]},
|
'$or': [{'$eq': ['$avg_progress_remote', 0]},
|
||||||
{'$eq': ['$avg_progress_local', 0]}]},
|
{'$eq': ['$avg_progress_local', 0]}]},
|
||||||
'then': 2 # Queued
|
'then': 1 # Queued
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'case': {'$or': [{'$and': [
|
'case': {'$or': [{'$and': [
|
||||||
|
|
@ -1459,7 +1459,7 @@ class SyncRepresentationDetailWidget(QtWidgets.QWidget):
|
||||||
actions_kwargs_mapping[action] = {'site': site}
|
actions_kwargs_mapping[action] = {'site': site}
|
||||||
menu.addAction(action)
|
menu.addAction(action)
|
||||||
|
|
||||||
if self.item.state == STATUS[1]:
|
if self.item.state == STATUS[2]:
|
||||||
action = QtWidgets.QAction("Open error detail")
|
action = QtWidgets.QAction("Open error detail")
|
||||||
actions_mapping[action] = self._show_detail
|
actions_mapping[action] = self._show_detail
|
||||||
menu.addAction(action)
|
menu.addAction(action)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue