Skip to content

Commit 870e0cc

Browse files
fixed basic errors
1 parent dce8b19 commit 870e0cc

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to Audiobook
1+
# Contributing to SystemGuard
22

33
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
44

@@ -21,7 +21,7 @@ We love your input! We want to make contributing to this project as easy and tra
2121
- Add a upstream link to main branch in your cloned repo
2222

2323
```sh
24-
git remote add upstream https://github.com/codeperfectplus/SystemDashboard
24+
git remote add upstream https://github.com/codeperfectplus/SystemGuard.git
2525
```
2626

2727
- Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)

src/routes/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def signup():
154154
send_smtp_email(admin_emails_with_alerts, subject, email_body, is_html=True)
155155

156156
# Send email to the new user
157-
subject = f"Welcome to the {get_app_info()["title"]}"
157+
subject = f"Welcome to the {get_app_info()['title']}"
158158
context = {
159159
"username": new_user.username,
160160
"email": new_user.email,

src/routes/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def general_settings():
4444
# If 'enable_alerts' was changed, send an email to the admins
4545
admin_emails_with_alerts = get_email_addresses(user_level="admin", receive_email_alerts=True)
4646
if admin_emails_with_alerts:
47-
subject = f"{get_app_info()["title"]} Alert Status Changed"
47+
subject = f"{get_app_info()['title']} Alert Status Changed"
4848
context = {
4949
"current_time": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
5050
"notifications_enabled": general_settings.enable_alerts,

src/routes/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create_user():
5555
send_smtp_email(admin_email_address, subject, email_body, is_html=True)
5656

5757
# Send welcome email to new user
58-
subject = f"Welcome to the {get_app_info()["title"]}"
58+
subject = f"Welcome to the {get_app_info()['title']}"
5959
context = {
6060
"username": new_user.username,
6161
"email": new_user.email,

src/scripts/email_me.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def send_smtp_email(receiver_email, subject,
5050
msg = MIMEMultipart()
5151
msg['From'] = EMAIL_FROM # Must be a verified Elastic Email sender
5252
msg['To'] = email
53-
msg['Subject'] = f"{get_app_info()["title"]} Alert from {system_name} ({server_name}): {subject}"
53+
msg['Subject'] = f"{get_app_info()['title']} Alert from ({server_name}): {subject}"
5454

5555
# Append message to the body
56-
append_message = f"This is an automated email from the {get_app_info()["title"]} application. Please do not reply to this email."
56+
append_message = f"This is an automated email from the {get_app_info()['title']} application. Please do not reply to this email."
5757

5858
# Add HTML or plain text to the email body
5959
if is_html:

0 commit comments

Comments
 (0)