Skip to content

Commit

Permalink
FIX: circular import error
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Nov 25, 2022
1 parent 032d0dc commit 5be0f95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WebStreamer/server/stream_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from aiohttp import web
from aiohttp.http_exceptions import BadStatusLine
from WebStreamer.bot import multi_clients, work_loads
from WebStreamer.utils.file_properties import get_hash
from WebStreamer.server.exceptions import FIleNotFound, InvalidHash
from WebStreamer import Var, utils, StartTime, __version__, StreamBot

Expand Down Expand Up @@ -81,7 +80,7 @@ async def media_streamer(request: web.Request, message_id: int, secure_hash: str
logging.debug("after calling get_file_properties")


if get_hash(file_id.unique_id, Var.HASH_LENGTH) != secure_hash:
if utils.get_hash(file_id.unique_id, Var.HASH_LENGTH) != secure_hash:
logging.debug(f"Invalid hash for message with ID {message_id}")
raise InvalidHash

Expand Down

0 comments on commit 5be0f95

Please sign in to comment.