Яндекс метрика. Пофиксил интервал обновления в данных.

This commit is contained in:
Mootfrost777 2022-08-09 18:28:33 +03:00
parent 3c55819786
commit 421d3c028d
4 changed files with 53 additions and 6 deletions

View file

@ -62,7 +62,7 @@ def load_projects():
print(f'{datetime.now()}: Projects updated')
except Exception as e:
print(f'{datetime.now()}: Error while updating projects: {e}')
time.sleep(12)
time.sleep(7200)
def load_code_stats():
@ -89,7 +89,7 @@ def load_code_stats():
print(f'{datetime.now()}: Code stats updated')
except Exception as e:
print(f'{datetime.now()}: Error while updating code stats: {e}')
time.sleep(12)
time.sleep(7200)
@app.on_event("startup")

View file

@ -1,5 +1,21 @@
<!DOCTYPE html>
<html>
<html lang="ru">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(89899712, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/89899712" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/static/resources/styles/about.style.css"/>

View file

@ -1,8 +1,23 @@
<!DOCTYPE html>
<html>
<html lang="ru">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(89899712, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/89899712" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<head>
<meta charset="utf-8">
<meta lang="ru">
<link rel="stylesheet" type="text/css" href="/static/resources/styles/index.style.css"/>
<link rel="icon" type="image/x-icon" href="/static/resources/images/favicon.png">
<title>Mootfrost</title>

View file

@ -1,5 +1,21 @@
<!DOCTYPE html>
<html>
<html lang="ru">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(89899712, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/89899712" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/static/resources/styles/projects.style.css"/>