Skip to content

Commit f6c50cc

Browse files
Update ntclient/persistence/sql/nt/funcs.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent c3c457b commit f6c50cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ntclient/persistence/sql/nt/funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def sql_nt_next_index(table: str) -> int:
99
# noinspection SqlResolve
1010
query = "SELECT MAX(id) as max_id FROM %s;" % table # nosec: B608
1111
rows, _, _, _ = sql(query)
12-
return int(rows[0]["max_id"])
12+
return int(rows[0]["max_id"] or 0)

0 commit comments

Comments
 (0)