Comment

Comment by rbut

Or you could generate the emoji symbol for the flag you want to display:

  country_code = 'AU'
  c1, c2 = map(lambda x: ord(x) + 0x1f1a5, country_code)
  flag = chr(c1) + chr(c2)
parent rbut 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton