From f8b077f3764c16935462ffb818bdb5aeda75222b Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Tue, 3 Sep 2024 19:45:08 +0000 Subject: [PATCH] (source, name) => (get_source, get_name) --- clipboard.py | 2 +- latest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clipboard.py b/clipboard.py index cfdcee9..9766e2d 100644 --- a/clipboard.py +++ b/clipboard.py @@ -48,7 +48,7 @@ args = { ), } -def source(): +def get_source(): logger.info("Uploading contents of clipboard") return Raw("txt", pyclip.paste()) diff --git a/latest.py b/latest.py index 1587cef..ccb6c3b 100644 --- a/latest.py +++ b/latest.py @@ -42,7 +42,7 @@ def init(): logger.fatal(f"Error: 'plugins.latest.directory => {config.directory}' is not a directory") config.directory = directory -def source(): +def get_source(): key = os.path.getmtime files = config.directory.iterdir() selection = next(files)