Forgot uncomment db fetch
This commit is contained in:
@@ -166,9 +166,9 @@ async def transfer_file_to_matrix(client: MautrixTelegramClient, intent: IntentA
|
|||||||
if not location_id:
|
if not location_id:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
#db_file = DBTelegramFile.get(location_id)
|
db_file = DBTelegramFile.get(location_id)
|
||||||
#if db_file:
|
if db_file:
|
||||||
# return db_file
|
return db_file
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lock = transfer_locks[location_id]
|
lock = transfer_locks[location_id]
|
||||||
@@ -184,9 +184,9 @@ async def _unlocked_transfer_file_to_matrix(client: MautrixTelegramClient, inten
|
|||||||
loc_id: str, location: TypeLocation,
|
loc_id: str, location: TypeLocation,
|
||||||
thumbnail: TypeThumbnail, is_sticker: bool
|
thumbnail: TypeThumbnail, is_sticker: bool
|
||||||
) -> Optional[DBTelegramFile]:
|
) -> Optional[DBTelegramFile]:
|
||||||
#db_file = DBTelegramFile.get(loc_id)
|
db_file = DBTelegramFile.get(loc_id)
|
||||||
#if db_file:
|
if db_file:
|
||||||
# return db_file
|
return db_file
|
||||||
|
|
||||||
try:
|
try:
|
||||||
file = await client.download_file(location)
|
file = await client.download_file(location)
|
||||||
|
|||||||
Reference in New Issue
Block a user