api.py: do not call self.update_limit() twice

Change-Id: I0c4a0990ad79743eb57a39287bfa4973ca070a93
Merge "api.py: do not call self.update_limit() twice"