Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Jun 5, 2024
1 parent 3168066 commit b30ab7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions findthatpostcode/blueprints/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def cors(func):
@wraps(func)
def decorated_function(*args, **kwargs):
response = func(*args, **kwargs)
response.headers[
"Access-Control-Allow-Methods"
] = "GET, POST, PUT, DELETE, OPTIONS"
response.headers[
"Access-Control-Allow-Headers"
] = "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token"
response.headers["Access-Control-Allow-Methods"] = (
"GET, POST, PUT, DELETE, OPTIONS"
)
response.headers["Access-Control-Allow-Headers"] = (
"Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token"
)
response.headers["Access-Control-Allow-Origin"] = "*"
return response

Expand Down
1 change: 1 addition & 0 deletions findthatpostcode/commands/codes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Import commands for the register of geographic codes and code history database
"""

import codecs
import csv
import datetime
Expand Down
1 change: 1 addition & 0 deletions findthatpostcode/commands/stats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Import commands for the register of geographic codes and code history database
"""

import codecs
import csv

Expand Down

0 comments on commit b30ab7e

Please sign in to comment.