edwardchalstrey1 / seshat

This is the beginning of the Seshat Project code.
0 stars 2 forks source link

Refactor polity year range retrieval in views.py #59

Closed edwardchalstrey1 closed 8 months ago

edwardchalstrey1 commented 8 months ago

This commit refactors the code to improve the retrieval of the polity year range. The previous implementation used hard-coded values, but now it uses a database query to dynamically fetch the minimum and maximum polity years from the core_videoshapefile table. This ensures that the displayed year range accurately reflects the available polity shape data.