Skip to content

Commit

Permalink
user collaboration
Browse files Browse the repository at this point in the history
  • Loading branch information
denishjackson1 committed Jun 21, 2023
1 parent be438ba commit fd07bc7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/controllers/statuses.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

from imp import reload
import os
from time import clock_settime
#from time import clock_settime

import requests
from yaml import scan
Expand Down
7 changes: 5 additions & 2 deletions app/helpers/user_to_project_notification.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from flask import render_template
from .email import send_email
from flask import Flask, request


def send_user_to_project_notification( email, name, app, template, subject, date, project_name, email_role, success):
html = render_template(template,
email=email,
client_base_url = f'https://{request.host}/register'
html = render_template(template,
email=email,
client_base_url=client_base_url,
name=name,
date= date,
project_name = project_name,
Expand Down
2 changes: 1 addition & 1 deletion config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Development(Base):
""" development config """

DEBUG = True
# SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@database/cranecloud"
# SQLALCHEMY_DATABASE_URI = "postgresql://postgress:postgres@database/cranecloud"
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URI", "postgresql:///cranecloud")
MONGO_URI = os.getenv("MONGO_URI", "mongodb://localhost:27017/cranecloud")

Expand Down
2 changes: 1 addition & 1 deletion templates/user/anonymous_user_to_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<tr>
<td align="center" style="border-radius: 3px" bgcolor="#008AC1">
<a
href="https://cranecloud.io/register"
href={{client_based_url}}
target="_blank"
style="
font-size: 20px;
Expand Down
2 changes: 1 addition & 1 deletion templates/user/user_to_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<tr>
<td align="center" style="border-radius: 3px" bgcolor="#008AC1">
<a
href="https://app.cranecloud.io/login"
href={{client_based_url}}
target="_blank"
style="
font-size: 20px;
Expand Down

0 comments on commit fd07bc7

Please sign in to comment.