Skip to content

Commit

Permalink
style: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jun 3, 2024
1 parent 7ece0df commit 1f388ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions horde/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
def after_request(response):
response.headers["Access-Control-Allow-Origin"] = "*"
response.headers["Access-Control-Allow-Methods"] = "POST, GET, OPTIONS, PUT, DELETE, PATCH"
response.headers["Access-Control-Allow-Headers"] = (
"Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, apikey, Client-Agent, X-Fields"
)
response.headers[
"Access-Control-Allow-Headers"
] = "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, apikey, Client-Agent, X-Fields"
response.headers["Horde-Node"] = f"{socket.gethostname()}:{args.port}:{HORDE_VERSION}"
return response

Expand Down
3 changes: 1 addition & 2 deletions horde/classes/base/news.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime

from loguru import logger


Expand All @@ -17,8 +18,6 @@ def __init__(self):
self.HORDE_NEWS = []
logger.error(f"File {path} not found. No news will be available.")



def get_news(self):
"""extensible function from gathering nodes from extensing classes"""
return self.HORDE_NEWS
Expand Down

0 comments on commit 1f388ff

Please sign in to comment.