Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix: Removed unneeded f-string and var assignment #118

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion radioactive/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _filter_entries_by_key(data, filter_param, key):
def _filter_entries_by_numeric_key(data, filter_param, key):
filtered_entries = []

filter_key = filter_param.split(key)[0] # most left hand of the expression
# filter_key = filter_param.split(key)[0] # most left hand of the expression
filter_param = filter_param.split(key)[1] # portion after the operator
filter_operator = filter_param[0] # operator part
filter_value = int(filter_param[1:]) # value part
Expand Down
2 changes: 1 addition & 1 deletion radioactive/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def record_audio_from_url(input_url, output_file, force_mp3, loglevel):
subprocess.run(ffmpeg_command, check=True)

log.debug("Record: {}".format(str(ffmpeg_command)))
log.info(f"Audio recorded successfully.")
log.info("Audio recorded successfully.")

except subprocess.CalledProcessError as e:
log.debug("Error: {}".format(e))
Expand Down