added plausible

This commit is contained in:
anon 2022-07-12 10:26:30 -03:00
parent a286c73fa1
commit a51e98301c
4 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,8 @@
{% load static %} {% load static %}
<head> <head>
<script defer data-domain="moneroj.net" src="https://plausible.io/js/plausible.js"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">

View file

@ -2,6 +2,8 @@
<html lang="en"> <html lang="en">
{% load static %} {% load static %}
<head> <head>
<script defer data-domain="moneroj.net" src="https://plausible.io/js/plausible.js"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="width=device-width, initial-scale=1.0" name="viewport">

View file

@ -434,7 +434,7 @@ def get_latest_price():
with open("settings.json") as file: with open("settings.json") as file:
data = json.load(file) data = json.load(file)
url = data["metrics_provider"][0]["price_url"] url = data["metrics_provider"][0]["price_url_old"]
parameters = { parameters = {
'convert':'USD', 'convert':'USD',
} }

View file

@ -29,7 +29,7 @@ STATICFILES_DIRS = [
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '' SECRET_KEY = 'dafsdasdfasfa7sdfs9d7das7f9as7df8ad77saf9df79as79s'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True