Median chart values failing in python 3.7 Django 2.2 development version

Issue #789 resolved
David Platten created an issue

No description provided.

Comments (13)

  1. David Platten reporter

    Failure to calculate median chart values was not due to a problem with my database: an OpenREM 0.10 install on python 2.7 is able to calculate medians from exactly the same database that when used with a python 3.7-based Django 2.2 version of OpenREM results in failure. I have replaced the median calculation with a simpler solution from here: This does not require the special median migration in order to work, which is a bonus. References issue #788 and #789

    → <<cset 350e15417f8c>>

  2. David Platten reporter

    The author of the code (the github link in my first comment) describes this as “PostgreSQL specific Django Median aggregation function. So I think it’s still just for PostgreSQL users.

  3. Ed McDonagh

    HI @David Platten

    I think we need to ‘cherry pick’ the 350e15417f8c changes and put them in a new branch to add to a PR and close this issue? Have I interpreted that correctly?

  4. David Platten reporter

    @Ed McDonagh agreed - I’ll create a new branch and put the appropriate changes in.

  5. Log in to comment