whenever u import from const, import everything
parent
97608ea0a9
commit
b6b1597748
|
@ -5,7 +5,7 @@ from sqlalchemy.orm import relationship, scoped_session
|
|||
from sqlalchemy.sql.sqltypes import *
|
||||
|
||||
from files.classes import Base
|
||||
from files.helpers.config.const import SITE_FULL
|
||||
from files.helpers.config.const import *
|
||||
from files.helpers.lazy import lazy
|
||||
|
||||
from .comment import Comment
|
||||
|
|
|
@ -3,7 +3,7 @@ from typing import Any, Callable, Optional, Tuple, Union
|
|||
from sqlalchemy import Column, func
|
||||
from sqlalchemy.orm import scoped_session
|
||||
|
||||
from files.helpers.config.const import LEADERBOARD_LIMIT
|
||||
from files.helpers.config.const import *
|
||||
|
||||
from .badges import Badge
|
||||
from .marsey import Marsey
|
||||
|
|
|
@ -5,7 +5,7 @@ from collections import defaultdict
|
|||
import gevent
|
||||
import gevent_inotifyx as inotify
|
||||
|
||||
from files.helpers.config.const import IS_FISTMAS
|
||||
from files.helpers.config.const import *
|
||||
|
||||
ASSET_DIR = 'files/assets'
|
||||
ASSET_SUBDIRS = ['/css', '/js', '/js/vendor']
|
||||
|
|
|
@ -4,7 +4,7 @@ from flask import g
|
|||
|
||||
from files.classes.user import User
|
||||
from files.helpers.alerts import send_repeatable_notification
|
||||
from files.helpers.config.const import bots, patron, SITE_NAME
|
||||
from files.helpers.config.const import *
|
||||
|
||||
def award_timers(v, bot=False):
|
||||
now = time.time()
|
||||
|
|
|
@ -3,7 +3,7 @@ from typing import List, Optional, Union
|
|||
|
||||
import requests
|
||||
|
||||
from files.helpers.config.const import CF_HEADERS, CF_ZONE, DEFAULT_CONFIG_VALUE
|
||||
from files.helpers.config.const import *
|
||||
|
||||
CLOUDFLARE_API_URL = "https://api.cloudflare.com/client/v4"
|
||||
CLOUDFLARE_REQUEST_TIMEOUT_SECS = 5
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from copy import deepcopy
|
||||
|
||||
from files.helpers.config.const import FEATURES, SITE_NAME, patron, IS_FISTMAS, IS_HOMOWEEN
|
||||
from files.helpers.config.const import *
|
||||
|
||||
AWARDS = {
|
||||
"fallback": {
|
||||
|
|
|
@ -3,7 +3,7 @@ from os import path
|
|||
from sqlalchemy.orm import scoped_session
|
||||
|
||||
from files.classes import Marsey
|
||||
from files.helpers.config.const import IS_FISTMAS, SITE_NAME
|
||||
from files.helpers.config.const import *
|
||||
|
||||
marseys_const = []
|
||||
marseys_const2 = []
|
||||
|
|
|
@ -5,7 +5,7 @@ from sqlalchemy import and_, any_, or_
|
|||
from sqlalchemy.orm import joinedload, selectinload, Query
|
||||
|
||||
from files.classes import Comment, CommentVote, Hat, Sub, Submission, User, UserBlock, Vote
|
||||
from files.helpers.config.const import AUTOJANNY_ID
|
||||
from files.helpers.config.const import *
|
||||
from files.__main__ import cache
|
||||
|
||||
def sanitize_username(username:str) -> str:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from files.helpers.config.const import LOG_DIRECTORY
|
||||
from files.helpers.config.const import *
|
||||
|
||||
def log_file(log_str:str, log_filename="rdrama.log"):
|
||||
'''
|
||||
|
|
|
@ -2,7 +2,7 @@ import requests
|
|||
import time
|
||||
|
||||
from files.helpers.security import *
|
||||
from files.helpers.config.const import EMAIL
|
||||
from files.helpers.config.const import *
|
||||
|
||||
from urllib.parse import quote
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import os
|
|||
import gevent
|
||||
import gevent_inotifyx as inotify
|
||||
|
||||
from files.helpers.config.const import SETTINGS_FILENAME
|
||||
from files.helpers.config.const import *
|
||||
|
||||
_SETTINGS = {
|
||||
"bots": True,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# import constants then...
|
||||
from files.helpers.config.const import FEATURES
|
||||
from files.helpers.config.const import *
|
||||
|
||||
# import flask then...
|
||||
from flask import g, request, render_template, make_response, redirect, send_file
|
||||
|
|
Loading…
Reference in New Issue