Skip to content

Commit

Permalink
Run code formatter to adhere to formatting guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
K-dash committed May 29, 2024
1 parent c2f5bf5 commit 85582c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ def send_user_email():
server.sendmail(env.EMAIL, env.EMAIL_RECEIVER, text)
print("Email sent successfully.")


if __name__ == "__main__":
send_user_email()
7 changes: 2 additions & 5 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import asyncio
import subprocess
import urllib.parse

from pathlib import Path

from flask import (
Flask,
render_template,
Expand All @@ -15,7 +15,6 @@
send_from_directory,
)
from flask_cors import CORS

from settings import ServerSettings

# Load environment variables from .env file
Expand All @@ -27,9 +26,7 @@

@app.route("/help")
def serve_help():
return send_from_directory(
f"{str(Path(__file__).parent)}/", "help.txt"
)
return send_from_directory(f"{str(Path(__file__).parent)}/", "help.txt")


@app.route("/home")
Expand Down
1 change: 1 addition & 0 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CommonSettings(BaseSettings):
model_config (SettingsConfigDict)Configuration dictionary
for specifying the settings file and encoding.
"""

model_config = SettingsConfigDict(
env_file=f"{Path(__file__).parent.parent}/.env",
env_file_encoding="utf-8",
Expand Down

0 comments on commit 85582c8

Please sign in to comment.