Skip to content

Commit bb4ab2f

Browse files
committed
chore: version bump to 6.1.0 + clean-up
1 parent 94d7ca1 commit bb4ab2f

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

backend/nebula/db.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ async def fetchrow(self, query: str, *args: Any) -> asyncpg.Record | None:
5858
pool = await self.pool()
5959
return await pool.fetchrow(query, *args)
6060

61-
async def iterate(
62-
self, query: str, *args: Any
63-
) -> AsyncGenerator[asyncpg.Record, None]:
61+
async def iterate(self, query: str, *args: Any) -> AsyncGenerator[asyncpg.Record]:
6462
"""Iterate over a query and yield the result."""
6563
pool = await self.pool()
6664
async with pool.acquire() as conn, conn.transaction():

backend/nebula/redis.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def publish(cls, message: str) -> None:
114114
await cls.redis_pool.publish(cls.channel, message)
115115

116116
@classmethod
117-
async def iterate(cls, namespace: str) -> AsyncGenerator[tuple[str, str], None]:
117+
async def iterate(cls, namespace: str) -> AsyncGenerator[tuple[str, str]]:
118118
"""Iterate over stored keys
119119
120120
Yield (key, payload) tuples matching given namespace.
@@ -129,9 +129,7 @@ async def iterate(cls, namespace: str) -> AsyncGenerator[tuple[str, str], None]:
129129
yield key_without_ns, payload
130130

131131
@classmethod
132-
async def iterate_json(
133-
cls, namespace: str
134-
) -> AsyncGenerator[tuple[str, Any], None]:
132+
async def iterate_json(cls, namespace: str) -> AsyncGenerator[tuple[str, Any]]:
135133
"""Iterate over stored keys
136134
137135
Yield (key, payload) tuples matching given namespace.

backend/nebula/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "6.0.10"
1+
__version__ = "6.1.0"

backend/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nebula"
3-
version = "6.0.10"
3+
version = "6.1.0"
44
description = "Open source broadcast automation system"
55
authors = [
66
{name = "Nebula Broadcast", email = "[email protected]"},
@@ -81,6 +81,8 @@ ignore = [
8181
"S101", # asserts - slowly removing
8282
"S608", # string-based SQL query construction
8383
"S307", # eval (used somewhere)
84+
"UP046",
85+
"UP047",
8486
]
8587

8688
[tool.mypy]

backend/server/session.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ async def delete(cls, token: str) -> None:
139139
await nebula.redis.delete(cls.ns, token)
140140

141141
@classmethod
142-
async def list(
143-
cls, user_name: str | None = None
144-
) -> AsyncGenerator[SessionModel, None]:
142+
async def list(cls, user_name: str | None = None) -> AsyncGenerator[SessionModel]:
145143
"""List active sessions for all or given user
146144
147145
Additionally, this function also removes expired sessions

backend/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>((props: ButtonProps, r
104104

105105
if (hlColor && !buttonProps.disabled) {
106106
//_buttonStyle.borderBottom = `1px solid ${props.hlColor}`;
107-
_iconStyle.color = props.hlColor
107+
_iconStyle.color = props.hlColor;
108108
}
109109

110110
return (

frontend/src/components/SelectDialog.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ const SelectDialog = ({ options, onHide, selectionMode, initialValue, title }) =
161161
ref={filterRef}
162162
style={{ flexGrow: 1 }}
163163
/>
164-
<Button onClick={() => setFilter('')} icon="filter_alt_off" title="Clear filter" />
164+
<Button
165+
onClick={() => setFilter('')}
166+
icon="filter_alt_off"
167+
title="Clear filter"
168+
/>
165169
</div>
166170
</div>
167171
);

0 commit comments

Comments
 (0)