Skip to content

Commit

Permalink
docs: add documentation in metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 12, 2023
1 parent 1cd9866 commit 0ce2b0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions robotoff/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def ensure_influx_database():


def get_product_count(country_tag: str) -> int:
"""Return the number of products in Product Opener for a specific country.
:param country_tag: ISO 2-letter country code
:return: the number of products currently in Product Opener
"""
r = http_session.get(
settings.BaseURLProvider.country(country_tag) + "/3.json?fields=null",
auth=settings._off_request_auth,
Expand Down

0 comments on commit 0ce2b0e

Please sign in to comment.