From f50eb68e1c5364586f8f9280020c3858c7a043f2 Mon Sep 17 00:00:00 2001 From: datawhores Date: Tue, 27 Aug 2024 16:19:25 -0500 Subject: [PATCH] change ssize col --- ofscraper/commands/managers/db.py | 2 +- ofscraper/utils/args/parse/group_bundles/db.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ofscraper/commands/managers/db.py b/ofscraper/commands/managers/db.py index 93602408..7848a3c8 100644 --- a/ofscraper/commands/managers/db.py +++ b/ofscraper/commands/managers/db.py @@ -149,7 +149,7 @@ def print_dictionary_table(self): for dictionary in dictionaries: dictionary["posted_at"]=arrow.get(dictionary["posted_at"]).format(constants.getattr("API_DATE_FORMAT")) dictionary["created_at"]=arrow.get(dictionary["created_at"]).format(constants.getattr("API_DATE_FORMAT")) - dictionary["size"]=f"{format_size(dictionary['size'] or 0)}/{dictionary['size']}" + dictionary["size"]=f"{dictionary['size']} [{format_size(dictionary['size'] or 0)}]" # Get the unique keys from all dictionaries keys = set() for dictionary in dictionaries: diff --git a/ofscraper/utils/args/parse/group_bundles/db.py b/ofscraper/utils/args/parse/group_bundles/db.py index f07d1000..2256bbc0 100644 --- a/ofscraper/utils/args/parse/group_bundles/db.py +++ b/ofscraper/utils/args/parse/group_bundles/db.py @@ -110,8 +110,10 @@ def db_args(func): @click.option_group( media_filter_options_desc, media_type_option, - max_size_option, min_size_option, + max_size_option, + length_min, + length_max, media_id_filter, help=media_filter_options_help )