Skip to content

Commit 128ffdb

Browse files
committed
removed broken command
1 parent aa03245 commit 128ffdb

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

packet/commands.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ def sync_freshmen(freshmen_csv: str) -> None:
6565
sync_freshman(freshmen_in_csv)
6666
print('Done!')
6767

68-
69-
@app.cli.command('create-packets')
70-
@click.argument('freshmen_csv')
71-
def create_packets(freshmen_csv: str) -> None:
72-
"""
73-
Creates a new packet season for each of the freshmen in the given CSV.
74-
"""
75-
print("WARNING: The 'sync-freshmen' command must be run first to ensure that the state of floor is up to date.")
76-
if input('Continue? (y/N): ').lower() != 'y':
77-
return
78-
79-
# Collect the necessary data
80-
base_date = input_date('Input the first day of packet season')
81-
freshmen_in_csv = parse_csv(freshmen_csv)
82-
create_new_packets(base_date, freshmen_in_csv)
83-
print('Done!')
68+
# TODO: this needs fixed with a proper datetime
69+
# @app.cli.command('create-packets')
70+
# @click.argument('freshmen_csv')
71+
# def create_packets(freshmen_csv: str) -> None:
72+
# """
73+
# Creates a new packet season for each of the freshmen in the given CSV.
74+
# """
75+
# print("WARNING: The 'sync-freshmen' command must be run first to ensure that the state of floor is up to date.")
76+
# if input('Continue? (y/N): ').lower() != 'y':
77+
# return
78+
79+
# # Collect the necessary data
80+
# base_date = input_date('Input the first day of packet season')
81+
# freshmen_in_csv = parse_csv(freshmen_csv)
82+
# create_new_packets(base_date, freshmen_in_csv)
83+
# print('Done!')
8484

8585

8686
@app.cli.command('ldap-sync')

packet/routes/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Shared API endpoints
33
"""
4-
from datetime import datetime, date
4+
from datetime import datetime
55
from json import dumps
66
from typing import Dict, Any, Union, Tuple
77

@@ -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 = datetime.strptime(request.json['start_date'], '%m/%d/%Y %H')
79+
base_date: datetime = 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'])

0 commit comments

Comments
 (0)