<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def refresh_data(self):
 """Refresh the cached SABnzbd queue data"""

        queue = await self.get_queue()
        history = await self.get_history()
        totals = {}
        for k in history:
            if k[-4:] == 'size':
                totals[k] = self._convert_size(history.get(k))
        self.queue = {**totals, **queue}