Skip to content

Commit df6286c

Browse files
Merge pull request #104 from goldlabelapps/staging
Bump version; update Apollo CSV & CTA colors
2 parents e602b44 + f60cf3b commit df6286c

6 files changed

Lines changed: 10 additions & 7 deletions

File tree

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Python° - FastAPI, Postgres, tsvector"""
22

33
# Current Version
4-
__version__ = "3.0.5"
4+
__version__ = "3.0.6"

app/api/queue/csv/apollo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
@router.post("/queue/csv/apollo")
1111
def import_apollo_csv() -> dict:
1212
"""POST /queue/csv/apollo: Import data from apollo.csv into the queue table (template)."""
13-
csv_path = os.path.join(os.path.dirname(__file__), "../csv/apollo/sample.csv")
13+
csv_path = os.path.join(os.path.dirname(__file__), "../csv/apollo/apollo-3.csv")
1414
if not os.path.exists(csv_path):
15-
raise HTTPException(status_code=404, detail="sample.csv not found")
15+
raise HTTPException(status_code=404, detail="csv not found")
1616
try:
1717
conn = get_db_connection_direct()
1818
cursor = conn.cursor()
File renamed without changes.
File renamed without changes.

app/utils/email_templates/goldlabel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def goldlabel_email(
5959
.email-header-inner {{ background-color: {_DARK_BG} !important; }}
6060
.email-footer {{ background-color: {_DARK_BG} !important; color: {_DARK_TEXT} !important; }}
6161
.email-subject {{ color: {_DARK_PRIMARY} !important; }}
62-
.email-cta {{ background-color: {_DARK_PRIMARY} !important; color: {_DARK_BG} !important; }}
62+
.email-cta {{ background-color: {_DARK_PRIMARY} !important; color: {_LIGHT_PRIMARY} !important; }}
6363
a {{ color: {_DARK_PRIMARY} !important; }}
6464
}}
6565
</style>
@@ -119,7 +119,7 @@ def goldlabel_email(
119119
<a class="email-cta"
120120
href="{cta_url}"
121121
style="display:block; width:100%; box-sizing:border-box;
122-
background-color:{_LIGHT_PRIMARY}; color:#ffffff;
122+
background-color:{_DARK_PRIMARY}; color:{_LIGHT_PRIMARY};
123123
font-size:16px; font-weight:700; text-align:center;
124124
text-decoration:none; border-radius:6px;
125125
padding:14px 20px;">

tests/test_resend.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ def test_resend_post_email(monkeypatch):
1313

1414
payload = {
1515
"to": 'listingslab@gmail.com',
16-
"subject": "pytest",
17-
"html": "Python tests have run"
16+
"subject": "Python°",
17+
"html": "pytest run successfully",
18+
"cta_label": "NX° Admin",
19+
"cta_url": "https://nx-admin.goldlabel.pro",
20+
1821
}
1922
response = client.post("/resend", json=payload)
2023
assert response.status_code == 202

0 commit comments

Comments
 (0)