mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 13:53:42 -05:00
add more needed imports
This commit is contained in:
parent
f9d0b8653d
commit
d301606325
1 changed files with 8 additions and 1 deletions
|
@ -1,10 +1,14 @@
|
||||||
from flask import url_for, request, jsonify
|
from flask import url_for, request, jsonify, Flask
|
||||||
from markupsafe import Markup
|
from markupsafe import Markup
|
||||||
from bleach.sanitizer import Cleaner
|
from bleach.sanitizer import Cleaner
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from mistune import HTMLRenderer, escape
|
from mistune import HTMLRenderer, escape
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
import time
|
||||||
|
import zipfile
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
import mistune
|
import mistune
|
||||||
import humanize
|
import humanize
|
||||||
import mysql.connector
|
import mysql.connector
|
||||||
|
@ -12,8 +16,11 @@ import re
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import json
|
import json
|
||||||
|
import requests
|
||||||
import constants as const
|
import constants as const
|
||||||
|
|
||||||
|
app = Flask(const.appName)
|
||||||
|
|
||||||
# load json file
|
# load json file
|
||||||
def loadJSON(file_path):
|
def loadJSON(file_path):
|
||||||
# open the file
|
# open the file
|
||||||
|
|
Loading…
Add table
Reference in a new issue