def get_hosting(self, hosting):
        domain, port = self.hosting_parse(hosting)
        if settings.OPPS_DEFAULT_URLS in domain:
            domain = 'example.com'
        try:
            return Site.objects.get(domain=domain)
        except Site.DoesNotExist:
            return Site.objects.order_by('id')[0]
dataset/ETHPy150Open opps/opps/opps/contrib/multisite/middleware.py/DynamicSiteMiddleware.get_hosting/swapped operands of `in`