diff --git a/firefly/modules/scheduler/calendar.py b/firefly/modules/scheduler/calendar.py index 96b3fa2..7a8ff86 100644 --- a/firefly/modules/scheduler/calendar.py +++ b/firefly/modules/scheduler/calendar.py @@ -440,7 +440,7 @@ def dropEvent(self, evt): if move: if not event.id: # Create empty event. Event edit dialog is enforced. - self.exectute_event_dialog(start=drop_ts) + self.execute_event_dialog(start=drop_ts) else: # Moving existing event around. Instant save if response := api.scheduler( @@ -459,7 +459,7 @@ def dropEvent(self, evt): self.calendar.dragging = False self.update() - def exectute_event_dialog(self, **kwargs): + def execute_event_dialog(self, **kwargs): kwargs["id_channel"] = self.id_channel kwargs["date"] = self.calendar.date QTimer.singleShot(100, functools.partial(self._execute_event_dialog, kwargs)) diff --git a/firefly/user.py b/firefly/user.py index ce7d2d1..fc96afb 100644 --- a/firefly/user.py +++ b/firefly/user.py @@ -15,15 +15,15 @@ def update(self, meta: dict[str, Any]) -> None: self.meta.update(meta) @property - def language(self): + def language(self) -> str: """Return the preferred language of the user.""" return "cs" @property - def name(self): + def name(self) -> str: return self.meta["login"] - def can(self, action: str, value: Any = None, anyval=False) -> bool: + def can(self, action: str, value: Any = None, anyval: bool = False) -> bool: if self["is_admin"]: return True key = f"can/{action}"