Skip to content

Commit 27a0a26

Browse files
committed
Removes the essays
1 parent 69080a3 commit 27a0a26

File tree

4 files changed

+0
-79
lines changed

4 files changed

+0
-79
lines changed

packet/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ class Packet(db.Model):
5050
freshman_username = Column(ForeignKey("freshman.rit_username"))
5151
start = Column(DateTime, nullable=False)
5252
end = Column(DateTime, nullable=False)
53-
info_eboard = Column(Text, nullable=True) # Used to fulfil the eboard description requirement
54-
info_events = Column(Text, nullable=True) # Used to fulfil the events list requirement
55-
info_achieve = Column(Text, nullable=True) # Used to fulfil the technical achievements list requirement
5653

5754
freshman = relationship("Freshman", back_populates="packets")
5855
upper_signatures = relationship("UpperSignature", lazy="subquery",

packet/routes/freshmen.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,3 @@ def index(info=None):
1919
return redirect(url_for("freshman_packet", packet_id=most_recent_packet.id), 302)
2020
else:
2121
return redirect(url_for("packets"), 302)
22-
23-
24-
@app.route("/essays/<packet_id>/")
25-
@packet_auth
26-
@before_request
27-
def essays(packet_id, info=None):
28-
packet = Packet.by_id(packet_id)
29-
30-
if packet is not None and packet.freshman_username == info["uid"]:
31-
return render_template("essays.html", info=info, packet=packet)
32-
else:
33-
return redirect(url_for("index"), 302)
34-
35-
36-
@app.route("/essays/<packet_id>/", methods=["POST"])
37-
@packet_auth
38-
@before_request
39-
def submit_essays(packet_id, info=None):
40-
packet = Packet.by_id(packet_id)
41-
42-
if packet is not None and packet.is_open() and packet.freshman_username == info["uid"]:
43-
packet.info_eboard = request.form.get("info_eboard", None)
44-
packet.info_events = request.form.get("info_events", None)
45-
packet.info_achieve = request.form.get("info_achieve", None)
46-
47-
db.session.commit()
48-
app.logger.info("Updated essays for {}".format(info["uid"]))
49-
return redirect(url_for("essays", packet_id=packet_id), 302)
50-
else:
51-
return redirect(url_for("index"), 302)

packet/templates/essays.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

packet/templates/include/nav.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
<li class="nav-item">
1919
<a class="nav-link" href="{{ url_for("upperclassmen_total") }}">Signatures</a>
2020
</li>
21-
{% elif packet is defined and packet.freshman_username == info.uid %}
22-
<li class="nav-item">
23-
<a class="nav-link" href="{{ url_for("essays", packet_id=packet.id) }}">Essays</a>
24-
</li>
2521
{% endif %}
2622

2723
</ul>

0 commit comments

Comments
 (0)