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
hooks:
- 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.urls import reverse
import datetime
from judge import event_poster as event
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.utils import encrypt_url, decrypt_url, encrypt_channel, get_unread_boxes
import json
class ChatView(ListView):
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, ...)
import datetime
import os
import tempfile

View file

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

View file

@ -1,6 +1,5 @@
from django.core.management.base import BaseCommand
from judge.models import *
from collections import defaultdict
import csv
import os
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
import os
from django.core.cache import cache
import hashlib
from judge.caching import cache_wrapper

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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