diff options
Diffstat (limited to 'api/randid.py')
-rw-r--r-- | api/randid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/randid.py b/api/randid.py index c837c2f..6c1ca9d 100644 --- a/api/randid.py +++ b/api/randid.py @@ -10,8 +10,8 @@ def new_uuid(table_name): column_name = tables[table_name] # check if id is already taken if cursor.execute( - f"select {column_name} from {table_name} where {column_name} = ?", - [temp_uuid] + f"select {column_name} from {table_name} where {column_name} = ?", + [temp_uuid] ).fetchone(): return new_uuid(table_name) else: |