Reformat
This commit is contained in:
parent
af17ca9665
commit
ae3f1090bf
21 changed files with 887 additions and 238 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ import json
|
|||
import logging
|
||||
import threading
|
||||
import time
|
||||
import os
|
||||
from collections import deque, namedtuple
|
||||
from operator import itemgetter
|
||||
|
||||
|
|
|
@ -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
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import csv
|
||||
from tempfile import mktemp
|
||||
import re
|
||||
|
||||
from django.conf import settings
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -2,7 +2,6 @@ import hashlib
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import yaml
|
||||
import zipfile
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from collections import defaultdict
|
||||
from math import e
|
||||
import os, zipfile
|
||||
from datetime import datetime
|
||||
import random
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import json
|
||||
import os.path
|
||||
import zipfile
|
||||
from operator import attrgetter
|
||||
|
||||
from django.conf import settings
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Courses</title>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Enrolling</h1>
|
||||
{% for course in enrolling %}
|
||||
<h2> {{ course }} </h2>
|
||||
|
@ -15,5 +15,5 @@
|
|||
{% for course in available %}
|
||||
<h2> {{ course }} </h2>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue