def handle_package_data(self):
        period = self.request.args.get('period', 'month')
        if isinstance(period, list):
            period = period[0]
        if period not in ('day', 'week', 'month'):
            period = 'month'
        downloads = getattr(self.package.downloads, period)
        downloads = self.intword(downloads)
        pperiod = (downloads, period) % "%s/%s"
        return self.write_shield(pperiod)
dataset/ETHPy150Open badges/pypipins/shields/shields.py/DownloadHandler.handle_package_data/swapped operands of `%`