Linting code

This commit is contained in:
jeffser
2024-08-04 21:20:47 -06:00
parent dd95e3df7e
commit 6ba3719031
6 changed files with 32 additions and 15 deletions

View File

@@ -6,8 +6,8 @@ import os
import logging
from pytube import YouTube
from html2text import html2text
from . import connection_handler
from gi.repository import Adw, Gtk
from . import connection_handler
logger = logging.getLogger(__name__)
# CLEAR CHAT | WORKS
@@ -307,8 +307,8 @@ def attach_file_response(self, file_dialog, result):
return
self.attach_file(file.get_path(), file_type)
def attach_file(self, filter):
file_dialog = Gtk.FileDialog(default_filter=filter)
def attach_file(self, file_filter):
file_dialog = Gtk.FileDialog(default_filter=file_filter)
file_dialog.open(self, None, lambda file_dialog, result: attach_file_response(self, file_dialog, result))
# YouTube caption | WORKS