Skip to content

Commit 79bf3b2

Browse files
committed
Slight bug fixes
1 parent bf69bb8 commit 79bf3b2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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)

wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
from packet import app
66

77
if __name__ == "__main__":
8-
app.run(host=app.config["IP"], port=int(app.config["PORT"]))
8+
app.run(host=app.config["IP"], port=int(app.config["PORT"]), threaded=False)

0 commit comments

Comments
 (0)