Skip to content

Commit

Permalink
feat: Implement reports limit (#7)
Browse files Browse the repository at this point in the history
- feat: Implement reports limit
- Add .github/FUNDING.yml
  • Loading branch information
edgarrmondragon authored Sep 2, 2023
1 parent 1e49c43 commit e5d166b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: [edgarrmondragon]
patreon: edgarrmondragon
ko_fi: edgarrmondragon

# open_collective: # Replace with a single Open Collective username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
# liberapay: # Replace with a single Liberapay username
# issuehunt: # Replace with a single IssueHunt username
# otechie: # Replace with a single Otechie username
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12 changes: 12 additions & 0 deletions tap_geekbot/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

import typing as t

from singer_sdk import typing as th

from tap_geekbot.client import GeekbotStream
Expand Down Expand Up @@ -71,6 +73,16 @@ class Reports(GeekbotStream):
),
).to_dict()

def get_url_params(
self,
context: dict | None,
next_page_token: t.Any | None, # noqa: ANN401
) -> dict[str, t.Any]:
"""Return the URL params for the request."""
params = super().get_url_params(context, next_page_token)
params["limit"] = 100
return params


class StandUps(GeekbotStream):
"""Reports stream."""
Expand Down

0 comments on commit e5d166b

Please sign in to comment.