diff options
Diffstat (limited to 'datamaps/api/api.py')
-rw-r--r-- | datamaps/api/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/datamaps/api/api.py b/datamaps/api/api.py index b6d8025..4073fbc 100644 --- a/datamaps/api/api.py +++ b/datamaps/api/api.py @@ -36,5 +36,9 @@ def project_data_from_master_month_api(master_file: str, month: int, year: int): else: pass # TODO: raise exception here + + # from that, we can work out what quarter year we are dealing with + if quarter == 4: + year = year - 1 m = Master(Quarter(quarter, year), master_file, month) return m |