jpetrucciani / hubspot3

python3.6+ hubspot client based on hapipy, but modified to use the newer endpoints and non-legacy python
MIT License
147 stars 73 forks source link

usage_limits doesn't have correct values when init Hubspot3. #80

Closed antonioIrizar closed 4 years ago

antonioIrizar commented 4 years ago

usage_limits doesn't have correct values when init Hubspot3. Because it creates a _usage_limits with empty values (their are fake) and when you call property usage_limits it validates with property need_update but the default values always put a current time and then it doesn't need update. You need wait 5 mintus until creation to have correct values.

I add a validation on fetch_status because default data put FetchStatus.NONE

jpetrucciani commented 4 years ago

Good catch! Thanks for this contribution - I'll get it merged in soon