-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilise la méthode BulkRequest pour l'affichage des statistiques #6135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super PR, j'ai deux/trois broutilles que tu peux changer.
all_type_referrers = self.get_all_refs(urls, start_date, end_date, "Referrers.getReferrerType") | ||
all_keywords = self.get_all_refs(urls, start_date, end_date, "Referrers.getKeywords") | ||
|
||
for index, url in enumerate(urls): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je l'aurais nommé url_hierarchy_index
pour rappeler que le principal besoin c'est les tutos big et moyens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qu'est-ce que tu aurais nommé url_hierarchy_index
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
la variable index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, pour être honnête je pense que ça rendrait le code plus confus qu'autre chose. On a urls
qui est une liste de NamedUrl
sur laquelle on itère, à chaque itération on note l'index et l'élément en question. Il ne s'agit pas de l'index dans la hiérarchie du contenu (ce qui est comme ça que je comprends url_hierarchy_index
).
Utilise la méthode BulkRequest pour l'affichage des statistiques