~metalune/simplynews_sites

4587a735568eb39a224f1a345b41724172ec6a1e — bopol 3 days ago 2e70665
polls: add number of votes
1 files changed, 9 insertions(+), 3 deletions(-)

M simplynews_sites/lefigaro.py
M simplynews_sites/lefigaro.py => simplynews_sites/lefigaro.py +9 -3
@@ 114,12 114,18 @@ def get_page(url):

                entries.append({"value": "{} : {}%".format(label, percentage)})

            el = {
            article.append({
                "type": "unsorted list",
                "entries": entries
            }
            })

            votes = poll_element.get("data-voters")

            article.append({
                "type": "paragraph",
                "value": "{} votes".format(votes)
            })

            article.append(el)
            data["article"] = article
            return data