This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openoffice-devtools.git


The following commit(s) were added to refs/heads/main by this push:
     new 641747e  Fix output
641747e is described below

commit 641747e9ffae192b48dbc8da59aa580db91e6cb7
Author: mseidel <[email protected]>
AuthorDate: Sun Aug 24 13:11:35 2025 +0200

    Fix output
---
 aoo-stats/downloads-by-country.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aoo-stats/downloads-by-country.py 
b/aoo-stats/downloads-by-country.py
index 265412c..9b4a33c 100644
--- a/aoo-stats/downloads-by-country.py
+++ b/aoo-stats/downloads-by-country.py
@@ -104,8 +104,8 @@ rank = 1
 for country in sorted(country_dict,key=lambda x: country_dict[x], 
reverse=True):
     print("<tr>")
     print("<td align='right'>" + "#" + str(rank) + "</td>")
-    print("<td>" + country.encode("utf-8") + "</td>")
-    print("<td align='right'>" + str(country_dict[country]) + "</td>")
+    print(f"<td>{country}</td>")
+    print(f"<td align='right'>{country_dict[country]}</td>")
     print("</tr>")
     rank +=1
 

Reply via email to