Skip to content

Commit

Permalink
chat: file fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Dec 20, 2023
1 parent 0d4ae09 commit bee9eea
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,13 @@ def main(openai_api_key=None, delete_unused=False):
# display the list of files which are not used by any Assistants
print_unused_files_header = True
for existing_file in existing_files:
if print_unused_files_header:
print("Files not used by any Assistants:")
print_unused_files_header = False
if not existing_file.id in file_assistant_count.keys():
# print header if this is the first unused file
if print_unused_files_header:
print("Files not used by any Assistants:")
print_unused_files_header = False

# print file attributes
filename_size_date = get_filename_size_date_from_id(existing_files, existing_file.id)
print(" id:" + existing_file.id + " name:" + filename_size_date[0] + " size:" + str(filename_size_date[1]) + " date:" + filename_size_date[2])

Expand Down

0 comments on commit bee9eea

Please sign in to comment.