Skip to content

Commit 8794095

Browse files
authored
Merge pull request #180 from ComputerScienceHouse/develop
Version 3.3.2
2 parents 9bc4759 + 7164a5c commit 8794095

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
2828

2929
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
3030

31-
CMD ["gunicorn", "packet:app", "--bind=0.0.0.0:8080", "--access-logfile=-"]
31+
CMD ["gunicorn", "packet:app", "--bind=0.0.0.0:8080", "--access-logfile=-", "--timeout=600"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "CSH Packet",
33
"name": "csh-packet",
4-
"version": "3.3.1",
4+
"version": "3.3.2",
55
"description": "A web app implementation of the CSH introductory packet.",
66
"bugs": {
77
"url": "https://github.com/ComputerScienceHouse/packet/issues",

packet/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def extend_packet(packet_id):
260260
else:
261261
print("Ready to extend packet #{} for {}".format(packet_id, packet.freshman_username))
262262

263-
packet.end = input_date("Enter the new end date for this packet")
263+
packet.end = datetime.combine(input_date("Enter the new end date for this packet"), packet_end_time)
264264
db.session.commit()
265265

266266
print("Packet successfully extended")

packet/context_processors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
# pylint: disable=bare-except
15+
@lru_cache(maxsize=128)
1516
def get_csh_name(username):
1617
try:
1718
member = ldap_get_member(username)

packet/ldap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def ldap_get_eboard_role(member):
144144
return_val = "R&D"
145145
elif _ldap_is_member_of_group(member, "eboard-social"):
146146
return_val = "Social"
147+
elif _ldap_is_member_of_group(member, "eboard-secretary"):
148+
return_val = "Secretary"
147149

148150
return return_val
149151

packet/templates/active_packets.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ <h4 class="page-title">Active Packets</h4>
4747
height="25"/> {{ get_rit_name(packet.freshman_username) }}
4848
</a>
4949
</td>
50-
<td data-sort="{{ packet.signatures_received_result.upper }}">
51-
{% if packet.signatures_received_result.upper == packet.signatures_required_result.upper %}
50+
<td data-sort="{{ packet.signatures_received_result.member_total }}">
51+
{% if packet.signatures_received_result.member_total == packet.signatures_required_result.member_total %}
5252
💯 {# 100% emoji #}
5353
{% else %}
54-
{{ packet.signatures_received_result.upper }} /
55-
{{ packet.signatures_required_result.upper }}
54+
{{ packet.signatures_received_result.member_total }} /
55+
{{ packet.signatures_required_result.member_total }}
5656
{% endif %}
5757
</td>
5858
<td data-sort="{{ packet.signatures_received_result.fresh }}">

0 commit comments

Comments
 (0)