update shebang lines
This commit is contained in:
6 files changed
+8
-8
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
|
|
||||||
with open('./output/students.json') as f: students = json.load(f)
|
with open('./output/students.json') as f: students = json.load(f)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
from inspect import currentframe
|
from inspect import currentframe
|
||||||
@@ -266,10 +266,10 @@ def generateScheduleV3(
|
|||||||
# Step 4 - Attempt to fit classes into timetable
|
# Step 4 - Attempt to fit classes into timetable
|
||||||
def stepIndex(offset: int, stepType: int) -> int:
|
def stepIndex(offset: int, stepType: int) -> int:
|
||||||
# stepType 0 is for stepping between first and second semester
|
# stepType 0 is for stepping between first and second semester
|
||||||
if stepType == 0: return 5 if offset == 0 or offset == -4 else -4
|
if stepType == 0: return 5 if offset in (0, -4) else -4
|
||||||
|
|
||||||
# stepType 1 is for stepping between second and first semester
|
# stepType 1 is for stepping between second and first semester
|
||||||
elif stepType == 1: return -5 if offset == 0 or offset == 6 else 6
|
elif stepType == 1: return -5 if offset in (0, 6) else 6
|
||||||
|
|
||||||
# Return Error if code is altered to cause error
|
# Return Error if code is altered to cause error
|
||||||
else: raise SystemExit(f"Invalid 'stepType' in func 'stepIndex' line {getLineNumber()}")
|
else: raise SystemExit(f"Invalid 'stepType' in func 'stepIndex' line {getLineNumber()}")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
from os.path import exists as file_exists
|
from os.path import exists as file_exists
|
||||||
from prettytable import PrettyTable
|
from prettytable import PrettyTable
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
|
|
||||||
# Get students
|
# Get students
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user