figures/views.py
def new_users(self, request):
        """
        TODO: Rename the metrics module function to "new_users" to match this
        """
        site = django.contrib.sites.shortcuts.get_current_site(request)
        date_for = datetime.utcnow().date()
        months_back = 6

        new_users = metrics.get_monthly_history_metric(
            func=metrics.get_total_site_users_joined_for_time_period,
            site=site,
            date_for=date_for,
            months_back=months_back,
        )
        data = dict(new_users=new_users)
        return Response(data)

        TODO: Rename the metrics module function to "new_users" to match this
        
Rename the metrics module function to "new_users" to match this
Rename the metrics module function to " new_users " to match this
def new_users(self, request):
        site = django.contrib.sites.shortcuts.get_current_site(request)
        date_for = datetime.utcnow().date()
        months_back = 6
        new_users = metrics.get_monthly_history_metric(
            func=metrics.get_total_site_users_joined_for_time_period,
            site=site,
            date_for=date_for,
            months_back=months_back,
        )
        data = dict(new_users=new_users)
        return Response(data)
def new_users ( self , request ) : site = django . contrib . sites . shortcuts . get_current_site ( request ) date_for = datetime . utcnow ( ) . date ( ) months_back = 6 new_users = metrics . get_monthly_history_metric ( func = metrics . get_total_site_users_joined_for_time_period , site = site , date_for = date_for , months_back = months_back , ) data = dict ( new_users = new_users ) return Response ( data )
TODO: Rename the metrics module function to "new_users" to match this
TODO : Rename the metrics module function to " new_users " to match this
"""
        TODO: Rename the metrics module function to "new_users" to match this
        """
self
request