Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Python° - FastAPI, Postgres, tsvector"""

# Current Version
__version__ = "3.0.5"
__version__ = "3.0.6"
4 changes: 2 additions & 2 deletions app/api/queue/csv/apollo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
@router.post("/queue/csv/apollo")
def import_apollo_csv() -> dict:
"""POST /queue/csv/apollo: Import data from apollo.csv into the queue table (template)."""
csv_path = os.path.join(os.path.dirname(__file__), "../csv/apollo/sample.csv")
csv_path = os.path.join(os.path.dirname(__file__), "../csv/apollo/apollo-3.csv")
if not os.path.exists(csv_path):
raise HTTPException(status_code=404, detail="sample.csv not found")
raise HTTPException(status_code=404, detail="csv not found")
try:
conn = get_db_connection_direct()
cursor = conn.cursor()
Expand Down
4 changes: 2 additions & 2 deletions app/utils/email_templates/goldlabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def goldlabel_email(
.email-header-inner {{ background-color: {_DARK_BG} !important; }}
.email-footer {{ background-color: {_DARK_BG} !important; color: {_DARK_TEXT} !important; }}
.email-subject {{ color: {_DARK_PRIMARY} !important; }}
.email-cta {{ background-color: {_DARK_PRIMARY} !important; color: {_DARK_BG} !important; }}
.email-cta {{ background-color: {_DARK_PRIMARY} !important; color: {_LIGHT_PRIMARY} !important; }}
a {{ color: {_DARK_PRIMARY} !important; }}
}}
</style>
Expand Down Expand Up @@ -119,7 +119,7 @@ def goldlabel_email(
<a class="email-cta"
href="{cta_url}"
style="display:block; width:100%; box-sizing:border-box;
background-color:{_LIGHT_PRIMARY}; color:#ffffff;
background-color:{_DARK_PRIMARY}; color:{_LIGHT_PRIMARY};
font-size:16px; font-weight:700; text-align:center;
text-decoration:none; border-radius:6px;
padding:14px 20px;">
Expand Down
7 changes: 5 additions & 2 deletions tests/test_resend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ def test_resend_post_email(monkeypatch):

payload = {
"to": 'listingslab@gmail.com',
"subject": "pytest",
"html": "Python tests have run"
"subject": "Python°",
"html": "pytest run successfully",
"cta_label": "NX° Admin",
"cta_url": "https://nx-admin.goldlabel.pro",

}
response = client.post("/resend", json=payload)
assert response.status_code == 202
Expand Down
Loading