Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Nov 11, 2024
1 parent 14d974b commit 77d30ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def process(self, instance):
)[-1]
ext_no_dot = ext[1:]

# representation files must be single `str` if single file
# and also must be the filename, not full path
filenames = [os.path.basename(file) for file in filepaths]
if len(filenames) == 1:
self.log.debug(f"Single file Publish {filenames}")
filenames = filenames[0]

representation = {
Expand Down

0 comments on commit 77d30ac

Please sign in to comment.