Skip to content

Commit

Permalink
Updated to 5.40.1
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Mar 31, 2022
1 parent ecaf2d0 commit 7f5673d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion firefly/modules/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ def check_changed(self):

def focus(self, asset, silent=False, force=False):
if not isinstance(asset, Asset):
logging.debug(f"[DETAIL] Only assets can be focused. Is: {type(asset)}")
return

logging.debug(f"[DETAIL] Focusing {asset}")
Expand Down
2 changes: 1 addition & 1 deletion firefly/modules/rundown_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def startDrag(self):
item_data[key] = self.button_config[key]
drag = QDrag(self)
mimeData = QMimeData()
mimeData.setData("application/nx.item", bytes(json.dumps([item_data])))
mimeData.setData("application/nx.item", json.dumps([item_data]).encode("utf-8"))
drag.setMimeData(mimeData)
if drag.exec_(Qt.CopyAction):
pass # nejak to rozumne ukonc
Expand Down
2 changes: 2 additions & 0 deletions firefly/modules/scheduler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def dump_template(calendar):
for event in calendar.events:
week_offset = event["start"] - calendar.week_start_time
day = int(week_offset / (3600 * 24))
if day < 0 or day > 6:
continue
days[day].append(event)

for i, day in enumerate(days):
Expand Down
2 changes: 1 addition & 1 deletion firefly/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FIREFLY_VERSION = "5.40"
FIREFLY_VERSION = "5.40.1"
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ websocket-client = "^1.3.1"
nxtools = "^1.6"

[tool.poetry.dev-dependencies]
mypy = "^0.931"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 7f5673d

Please sign in to comment.