|
11 | 11 |
|
12 | 12 | from . import app, db |
13 | 13 | from .models import Packet, FreshSignature, UpperSignature, MiscSignature |
14 | | -from .utils import sync_freshman, create_new_packets, sync_with_ldap |
| 14 | +from .utils import sync_freshman, sync_with_ldap |
15 | 15 |
|
16 | 16 |
|
17 | 17 | @app.cli.command('create-secret') |
@@ -65,22 +65,22 @@ def sync_freshmen(freshmen_csv: str) -> None: |
65 | 65 | sync_freshman(freshmen_in_csv) |
66 | 66 | print('Done!') |
67 | 67 |
|
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!') |
84 | 84 |
|
85 | 85 |
|
86 | 86 | @app.cli.command('ldap-sync') |
|
0 commit comments