From a9933513ca11d6254e09415da3171a30ea7fa034 Mon Sep 17 00:00:00 2001 From: fmk17 <fmk17@inf.ufpr.br> Date: Sun, 13 Feb 2022 18:36:51 -0300 Subject: [PATCH] Remove future Python feature --- database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.py b/database.py index cf81613..b2fb242 100644 --- a/database.py +++ b/database.py @@ -274,7 +274,8 @@ def get_location_by_command(command): ), (command,), ) - return Location(*row) if (row := cur.fetchone()) is not None else None + row = cur.fetchone() + return Location(*row) if row is not None else None def get_meals_query(end_query, end_params=()): -- GitLab