slashme / parliamentdiagram

Parliament diagram creator
GNU General Public License v2.0
104 stars 29 forks source link

Caching of existing diagrams doesn't work #156

Closed Gouvernathor closed 4 months ago

Gouvernathor commented 4 months ago

What we do is to hash the JSON data string passed to the python, and put that in the file name. The trouble is that string hashing in Python is intentionally not reliable between python processes (and there is one process per query), so no match is ever found and the same image is generated all over again.

It needs to be fixed separately in both the arch and westminster python backends.

Gouvernathor commented 4 months ago

Fixed for Wesminster, still active for Arch