Skip to content

Commit aa03245

Browse files
committed
fix types and imports
1 parent 4ab59f0 commit aa03245

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packet/routes/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_packet() -> Tuple[str, int]:
7676
if not ldap.is_evals(ldap.get_member(username)):
7777
return 'Forbidden: not Evaluations Director', 403
7878

79-
base_date: date = datetime.strptime(request.json['start_date'], '%m/%d/%Y %H')
79+
base_date = datetime.strptime(request.json['start_date'], '%m/%d/%Y %H')
8080

8181
freshmen_in_post: Dict[str, POSTFreshman] = {
8282
freshman.rit_username: freshman for freshman in map(POSTFreshman, request.json['freshmen'])

packet/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
General utilities and decorators for supporting the Python logic
33
"""
4-
from datetime import datetime, time, timedelta, date
4+
from datetime import datetime, timedelta
55
from functools import wraps, lru_cache
66
from typing import Any, Callable, TypeVar, cast
77
from urllib.parse import urlparse

0 commit comments

Comments
 (0)