Skip to content

Commit

Permalink
fix: remove RANDOMIZE_SUBSCRIPTION_CONFIGS
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Aug 4, 2024
1 parent 25c07ac commit cb7aa7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ UVICORN_PORT = 8000
# SUB_PROFILE_TITLE = "Susbcription"
# SUB_SUPPORT_URL = "https://t.me/support"
# SUB_UPDATE_INTERVAL = "12"
# RANDOMIZE_SUBSCRIPTION_CONFIGS = True

## External config to import into v2ray format subscription
# EXTERNAL_CONFIG = "config://..."
Expand All @@ -73,7 +72,7 @@ UVICORN_PORT = 8000
# USER_AUTODELETE_INCLUDE_LIMITED_ACCOUNTS = false

## Customize all notifications
# NOTIFY_STATUS_CHANGE = True
# NOTIFY_STATUS_CHANGE = True
# NOTIFY_USER_CREATED = True
# NOTIFY_USER_UPDATED = True
# NOTIFY_USER_DELETED = True
Expand Down
9 changes: 3 additions & 6 deletions app/subscription/share.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import base64
import copy
import random
import secrets
import yaml
import json
from collections import defaultdict
from datetime import datetime as dt
from datetime import timedelta
from typing import TYPE_CHECKING, List, Literal, Union
from collections import defaultdict

from jdatetime import date as jd

Expand All @@ -17,11 +14,11 @@
from . import *

if TYPE_CHECKING:
from app.models.user import UserResponse, UserStatus
from app.models.user import UserResponse

from config import (ACTIVE_STATUS_TEXT, DISABLED_STATUS_TEXT,
EXPIRED_STATUS_TEXT, LIMITED_STATUS_TEXT,
ONHOLD_STATUS_TEXT, RANDOMIZE_SUBSCRIPTION_CONFIGS)
ONHOLD_STATUS_TEXT)

SERVER_IP = get_public_ip()
SERVER_IPV6 = get_public_ipv6()
Expand Down
1 change: 0 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
SUB_UPDATE_INTERVAL = config("SUB_UPDATE_INTERVAL", default="12")
SUB_SUPPORT_URL = config("SUB_SUPPORT_URL", default="https://t.me/")
SUB_PROFILE_TITLE = config("SUB_PROFILE_TITLE", default="Subscription")
RANDOMIZE_SUBSCRIPTION_CONFIGS = config("RANDOMIZE_SUBSCRIPTION_CONFIGS", default=False, cast=bool)

# discord webhook log
DISCORD_WEBHOOK_URL = config("DISCORD_WEBHOOK_URL", default="")

0 comments on commit cb7aa7a

Please sign in to comment.