Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Created November 22, 2021 02:14
Show Gist options
  • Save larkintuckerllc/8af1fe8a5562db3c8704b8601762e9e1 to your computer and use it in GitHub Desktop.
Save larkintuckerllc/8af1fe8a5562db3c8704b8601762e9e1 to your computer and use it in GitHub Desktop.
def read_metadata(self, items):
metadata = {}
for item in items:
if item in self.metadata:
metadata[item] = self.metadata[item]
if metadata == {}:
return None
return metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment