You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the client, I should be able to have idem-potent results when iterating over campaign_results by campaign_id
Current Behavior
Results are different if I fetch campaign_results from campaign 123, then 456, then 789 from when I fetch campaign_results from 789, then 456, then 123.
Possible Solution
I have to "refresh" my client by calling api = ub.APIClient("xxx", "xxx") at each run
Steps to Reproduce
importusabillaasubapi=ub.APIClient("xxx", "xxx")
# This order won't give the same results as # for campaign in ["123", "456", "789", "foo"]:# This orderforcampaignin ["foo", "123", "456", "789"]:
# If I refresh the client here, it works # api = ub.APIClient("xxx", "xxx")responses=api.get_resource(
api.SCOPE_LIVE,
api.PRODUCT_WEBSITES,
api.RESOURCE_CAMPAIGN_RESULT,
campaign,
iterate=True,
)
count=0forresponseinresponses:
count=count+1print(f"{campaign}{count}")
Expected Behavior
When using the client, I should be able to have idem-potent results when iterating over campaign_results by campaign_id
Current Behavior
Results are different if I fetch campaign_results from campaign 123, then 456, then 789 from when I fetch campaign_results from 789, then 456, then 123.
Possible Solution
I have to "refresh" my client by calling
api = ub.APIClient("xxx", "xxx")
at each runSteps to Reproduce
Results for first order:
Results for another order:
Results when I refresh the client (good results):
Context (Environment)
Docker image:
python:3.7.4
Python lib:
usabilla-api==2.0.1
The text was updated successfully, but these errors were encountered: