This commit is contained in:
cuom1999 2023-10-16 16:36:56 -05:00
parent af17ca9665
commit ae3f1090bf
21 changed files with 887 additions and 238 deletions

View file

@ -11,3 +11,7 @@ repos:
rev: 22.12.0 rev: 22.12.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/hadialqattan/pycln
rev: 'v2.3.0'
hooks:
- id: pycln

View file

@ -29,7 +29,6 @@ from django.utils import timezone
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.urls import reverse from django.urls import reverse
import datetime
from judge import event_poster as event from judge import event_poster as event
from judge.jinja2.gravatar import gravatar from judge.jinja2.gravatar import gravatar
@ -38,8 +37,6 @@ from judge.models import Friend
from chat_box.models import Message, Profile, Room, UserRoom, Ignore from chat_box.models import Message, Profile, Room, UserRoom, Ignore
from chat_box.utils import encrypt_url, decrypt_url, encrypt_channel, get_unread_boxes from chat_box.utils import encrypt_url, decrypt_url, encrypt_channel, get_unread_boxes
import json
class ChatView(ListView): class ChatView(ListView):
context_object_name = "message" context_object_name = "message"

View file

@ -9,7 +9,6 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
""" """
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import datetime
import os import os
import tempfile import tempfile

View file

@ -3,7 +3,6 @@ import json
import logging import logging
import threading import threading
import time import time
import os
from collections import deque, namedtuple from collections import deque, namedtuple
from operator import itemgetter from operator import itemgetter

View file

@ -1,6 +1,5 @@
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from judge.models import * from judge.models import *
from collections import defaultdict
import csv import csv
import os import os
from django.conf import settings from django.conf import settings

File diff suppressed because one or more lines are too long

View file

@ -2,7 +2,6 @@ import numpy as np
from django.conf import settings from django.conf import settings
import os import os
from django.core.cache import cache from django.core.cache import cache
import hashlib
from judge.caching import cache_wrapper from judge.caching import cache_wrapper

View file

@ -1,6 +1,5 @@
import errno import errno
from operator import attrgetter from operator import attrgetter
from math import sqrt
from django.conf import settings from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation from django.contrib.contenttypes.fields import GenericRelation

View file

@ -1,5 +1,4 @@
import csv import csv
from tempfile import mktemp
import re import re
from django.conf import settings from django.conf import settings

View file

@ -5,7 +5,6 @@ from django import forms
from django.forms import ClearableFileInput from django.forms import ClearableFileInput
import os, os.path import os, os.path
import tempfile
import shutil import shutil
__all__ = ("handle_upload", "save_upload", "FineUploadForm", "FineUploadFileInput") __all__ = ("handle_upload", "save_upload", "FineUploadForm", "FineUploadFileInput")

View file

@ -2,7 +2,6 @@ import hashlib
import json import json
import os import os
import re import re
import shutil
import yaml import yaml
import zipfile import zipfile

View file

@ -1,6 +1,5 @@
from collections import defaultdict from collections import defaultdict
from math import e from math import e
import os, zipfile
from datetime import datetime from datetime import datetime
import random import random

View file

@ -1,6 +1,5 @@
import json import json
import os.path import os.path
import zipfile
from operator import attrgetter from operator import attrgetter
from django.conf import settings from django.conf import settings

View file

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Courses</title> <title>Courses</title>
</head> </head>
<body> <body>
</body> </body>
</html> </html>

View file

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Document</title>
</head> </head>
<body> <body>
<h1>Enrolling</h1> <h1>Enrolling</h1>
{% for course in enrolling %} {% for course in enrolling %}
<h2> {{ course }} </h2> <h2> {{ course }} </h2>
@ -15,5 +15,5 @@
{% for course in available %} {% for course in available %}
<h2> {{ course }} </h2> <h2> {{ course }} </h2>
{% endfor %} {% endfor %}
</body> </body>
</html> </html>