Skip to content

Commit

Permalink
Linting cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
nikdoof committed Dec 24, 2023
1 parent e8ea1a4 commit d72b1e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion local_spaces/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import secrets

from flask import Flask
Expand Down
4 changes: 2 additions & 2 deletions local_spaces/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit d72b1e5

Please sign in to comment.