Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore NameStore Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Call NameLoad NameLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Str For NameStore NameLoad body Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Print NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Raise decorator_list
N/A N/A shutil N/A subprocess N/A os N/A datetime N/A os.path bson ObjectId galah.db.models Submission CSV TestResult User Assignment galah.base.config load_config N/A config N/A load_config sisyphus N/A logging N/A logger N/A N/A logging getLogger galah.sisyphus.create_assignment_csv _create_assignment_csv N/A N/A csv_id requester assignment N/A N/A N/A csv_id N/A ObjectId csv_id N/A csv_file temp_directory N/A deleted_files N/A N/A i N/A N/A CSV objects expires__lt N/A N/A N/A datetime datetime today N/A N/A N/A N/A deleted_files append N/A i file_location N/A N/A i file_location N/A N/A N/A N/A N/A N/A os remove N/A i file_location N/A N/A N/A OSError N/A e N/A N/A N/A N/A logger warning Could not remove expired csv file at %s: %s. N/A i file_location N/A str e N/A N/A N/A i delete N/A deleted_files N/A N/A N/A N/A logger info Deleted csv files %s. N/A str deleted_files N/A new_csv N/A CSV id csv_id requester requester N/A temp_directory csv_file None N/A N/A N/A assn N/A N/A N/A Assignment objects get id N/A ObjectId assignment N/A users N/A list N/A N/A User objects account_type student classes N/A assn for_class N/A query N/A assignment most_recent user__in N/A ObjectId assignment True N/A N/A i id N/A i users N/A submissions N/A list N/A N/A Submission objects query N/A csv_file N/A open N/A N/A N/A os path join N/A config N/A CSV_DIRECTORY N/A str csv_id w N/A i submissions N/A N/A score None N/A N/A i test_results N/A N/A test_result N/A N/A N/A TestResult objects get id N/A i test_results N/A score N/A str N/A test_result score N/A csv_file N/A %s,%s,%s N/A N/A i user score N/A N/A N/A i timestamp strftime %Y-%m-%d-%H-%M-%S N/A N/A N/A csv_file close N/A N/A new_csv file_location N/A N/A N/A os path join N/A config N/A CSV_DIRECTORY N/A str csv_id N/A N/A new_csv expires N/A N/A N/A N/A datetime datetime today N/A config N/A TEACHER_CSV_LIFETIME N/A N/A N/A new_csv save force_insert True N/A N/A N/A Exception N/A e N/A N/A N/A new_csv file_location None N/A N/A N/A os remove N/A N/A N/A os path join N/A config N/A CSV_DIRECTORY N/A str csv_id N/A N/A new_csv error_string N/A str e N/A N/A N/A new_csv save force_insert True N/A N/A