diff --git a/app/app/context.py b/app/app/context.py index ef4a4e50fce..bbbd826abfb 100644 --- a/app/app/context.py +++ b/app/app/context.py @@ -60,7 +60,6 @@ def preprocess(request): record_visit = not profile.last_visit or profile.last_visit < ( timezone.now() - timezone.timedelta(seconds=RECORD_VISIT_EVERY_N_SECONDS) ) - if record_visit: ip_address = get_ip(request) profile.last_visit = timezone.now() @@ -69,7 +68,11 @@ def preprocess(request): profile.save() except Exception as e: logger.exception(e) - metadata = {'useragent': request.META['HTTP_USER_AGENT'], } + metadata = { + 'useragent': request.META['HTTP_USER_AGENT'], + 'referrer': request.META.get('HTTP_REFERER', None), + 'path': request.META.get('PATH_INFO', None), + } UserAction.objects.create( user=request.user, profile=profile, diff --git a/app/avatar/utils.py b/app/avatar/utils.py index 448b579453b..3ab11ced2ce 100644 --- a/app/avatar/utils.py +++ b/app/avatar/utils.py @@ -605,7 +605,7 @@ def get_temp_image_file(image): return temp_io -def svg_to_png(svg_content, width=100, height=100, scale=1, index=None, prefer=None): +def svg_to_png(svg_content, width=100, height=100, scale=1, index=None, prefer=None, extra_flags=''): print('creating svg with pyvips') png = None if not prefer or prefer == 'pyvips': diff --git a/app/dashboard/templates/profiles/activity_stats.html b/app/dashboard/templates/profiles/activity_stats.html index dce8b1e8e66..6945f574b7e 100644 --- a/app/dashboard/templates/profiles/activity_stats.html +++ b/app/dashboard/templates/profiles/activity_stats.html @@ -5,9 +5,7 @@
  • Reliability: {{profile.reliability}} - ( Details ) - -
    +
    + Details +
  • @@ -53,10 +53,10 @@
  • {% if profile.avg_hourly_rate %}
  • + Avg Hourly Rate ${{profile.avg_hourly_rate|floatformat:2}} - Avg Hourly Rate ${{profile.avg_hourly_rate|floatformat:2}}
  • {% endif %} {% endif %}