javigallostra / RocoLib

Web App to create and share bouldering routes of a climbing gym.
GNU General Public License v3.0
7 stars 3 forks source link

Optimize DDBB queries #163

Closed juangallostra closed 2 years ago

juangallostra commented 2 years ago

Description of the issue/feature this PR addresses

Related issue: #162

Current behavior before PR

Some queries were obtaining a whole list of objects when a single one was required.

Desired behavior after PR is merged

Single objects are retrieved when required, and not whole lists.

A part from that:

  1. Fix html meta tags
  2. Fix postprocessing decorator

-- I confirm I have tested this PR thoroughly and coded it according to PEP8.