diff --git a/local_spaces/app.py b/local_spaces/app.py index 3956b0f..93bbe32 100644 --- a/local_spaces/app.py +++ b/local_spaces/app.py @@ -1,4 +1,3 @@ - import secrets from flask import Flask diff --git a/local_spaces/local.py b/local_spaces/local.py index 94f26af..70851d3 100644 --- a/local_spaces/local.py +++ b/local_spaces/local.py @@ -62,7 +62,7 @@ def spaces(): distance = calculate_distance(source, dest) if distance <= float(current_app.config.get("LOCALSPACES_DISTANCE")): print("Added {0}".format(space["data"]["space"])) - space['distance'] = distance + space["distance"] = distance spaces.append(space) - return sorted(spaces, key=lambda d: d['distance']) + return sorted(spaces, key=lambda d: d["distance"])