Skip to content

Commit

Permalink
adding function docstring for new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
guptaa3 committed Jul 22, 2021
1 parent a9c4b05 commit 50b2d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tap_zendesk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def get_abs_path(path):


def get_side_load_schemas(sideload_objects, stream):
"""Returns the updated schema after adding side load objects to schema dict"""
stream_schema = stream.schema.to_dict()
for sideload_object in sideload_objects:
if sideload_object in SIDELOAD_OBJECTS[stream.tap_stream_id]:
Expand Down
1 change: 1 addition & 0 deletions tap_zendesk/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
DEFAULT_SEARCH_WINDOW_SIZE = (60 * 60 * 24) * 30 # defined in seconds, default to a month (30 days)

def get_sideload_objects(stream):
"""Returns the value of sideload-objects from metadata, returns None if no values are present"""
return metadata.to_map(stream.metadata).get((), {}).get('sideload-objects')

def get_abs_path(path):
Expand Down

0 comments on commit 50b2d14

Please sign in to comment.