Change order of if statement

Co-authored-by: Odd Stråbø <oddstr13@openshell.no>
This commit is contained in:
mcarlton00 2021-07-04 21:02:46 -04:00 committed by GitHub
parent df319b8f92
commit 3d37b3a743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ def zip_files(py_version: str, source: str, target: str, dev: bool) -> None:
for root, dirs, files in os.walk(args.source): for root, dirs, files in os.walk(args.source):
for filename in filter(file_filter, files): for filename in filter(file_filter, files):
file_path = os.path.join(root, filename) file_path = os.path.join(root, filename)
if folder_filter(file_path) or dev: if dev or folder_filter(file_path):
relative_path = os.path.join('plugin.video.jellyfin', os.path.relpath(file_path, source)) relative_path = os.path.join('plugin.video.jellyfin', os.path.relpath(file_path, source))
z.write(file_path, relative_path) z.write(file_path, relative_path)