Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
changed variable name to required_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jun 15, 2022
1 parent c25cb9e commit 6753213
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openpype/client/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _get_project_connection(project_name=None):
return mongodb


def _prepare_fields(fields, ensure_fields=None):
def _prepare_fields(fields, required_fields=None):
if not fields:
return None

Expand All @@ -34,8 +34,8 @@ def _prepare_fields(fields, ensure_fields=None):
if "_id" not in output:
output["_id"] = True

if ensure_fields:
for key in ensure_fields:
if required_fields:
for key in required_fields:
output[key] = True
return output

Expand Down

0 comments on commit 6753213

Please sign in to comment.