Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit eaaa209

Browse files
committed
Minor changes from testing, add favicon
1 parent bc2c6e8 commit eaaa209

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ Automating Individual Event Pages.
1414
- ~~Current state of this repo automatically deployed [here](http://test-environment.eba-s4xs6euy.us-east-1.elasticbeanstalk.com/Timber%20Woods%20High%20School)~~ (temporarily terminated environment while site is being connected to test data)
1515
- Test with school examples from test data:
1616
- `/cumberland%20valley` has sponsor example
17+
- `/andover`
1718
- `/carmel` (missing event date and tree goals, but has tree species, one host, youtube video)
1819
- `/oakland%20tech-east%20bay` (missing event date and tree goals, but has tree species, multiple hosts, text message)
1920
- `/deerfield` or `/norwood` or `/paramus` (has event date, tree goals)
20-
- Need to test:
21-
- price, donate=false (should already work, just don't have test data yet)
22-
- volunteer link, tree purchase link, sponsor links, tree info links (should already work, just don't have test data yet)

dataToPickle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
except:
102102
print("Order deadline could not be calculated for date: ", eventData[school]['date'], "from school:", school)
103103
pass
104+
105+
eventData[school]['price'] = float(eventData[school]['price'])
104106
# dump dictionary into pickle file
105107
with open('eventDataDict.pkl', 'wb') as handle:
106108
pickle.dump(eventData, handle, protocol=pickle.HIGHEST_PROTOCOL)

eventDataDict.pkl

6.99 KB
Binary file not shown.

static/images/favicon.png

417 KB
Loading

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
77
<link rel="preconnect" href="https://fonts.gstatic.com">
88
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
9+
<link rel="icon" type="image/png" href="../static/images/favicon.png"/>
910
{% block head %}{% endblock %}
1011
</head>
1112
<body>

templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h4 style="text-align: center; margin: 5% 10%; line-height: 1.5em">
2929
<h1>A Message from Our Team</h1>
3030
<hr />
3131
{% if event.media_type == 'video' or event.media_type == 'text' %}
32-
{% if event.video %}
32+
{% if event.media_type == 'video' and event.video %}
3333
{% if 'www.youtube.com' in event.video %}
3434
<div class="video-container">
3535
<iframe
@@ -83,11 +83,11 @@ <h1>How to Participate</h1>
8383
<div class="top">
8484
<h3>Order a Sapling</h3>
8585
<p>
86-
Order a ${{ event.price }} sapling to be planted in your yard by volunteers
86+
Order a {{ "$%.0f"|format(event.price) }} sapling to be planted in your yard by volunteers
8787
on {{ event.date }}.
8888
</p>
8989
</div>
90-
<a href="{{ event.tree_order_ink }}" class="button">Order a Tree</a>
90+
<a href="{{ event.tree_order_link }}" class="button">Order a Tree</a>
9191
</div>
9292
<div class="card min2">
9393
<div class="top">

0 commit comments

Comments
 (0)