Починил вкапи. Какой же я тупой, просто надо было в настройках разрешить...

This commit is contained in:
Mootfrost777 2022-12-04 13:27:10 +03:00
parent 7ae4fef256
commit dfeb39f34e
4 changed files with 5 additions and 12 deletions

View file

@ -28,11 +28,7 @@ steps:
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
WAKATIME_APIKEY:
from_secret: WAKATIME_APIKEY
commands:
- WAKATIME_APIKEY=$$WAKATIME_APIKEY
- docker-compose -p mootfrost-dev up -d
- name: prune
image: docker/compose:latest

View file

@ -5,8 +5,6 @@ services:
image: registry.mootfrost.ru/mootfrost-dev/backend
container_name: mootfrost-dev_backend
restart: always
environment:
- WAKATIME_APIKEY=${WAKATIME_APIKEY}
build: .
ports:
- "7632:7632"

View file

@ -69,14 +69,13 @@ def load_projects():
def load_code_stats():
while True:
resp = requests.get(f"https://wakatime.com/api/v1/users/current/insights/languages/last_7_days",
params={'api_key': os.environ['WAKATIME_APIKEY']}).json()
resp = requests.get('https://waka.mootfrost.ru/api/compat/wakatime/v1/users/Mootfrost/stats/last_7_days').json()
global code_stats
code_stats.clear()
for el in resp['data']['languages']:
hours = math.trunc(el['total_seconds']) // 3600
minutes = (math.trunc(el['total_seconds']) % 3600) // 60
hours = el['hours']
minutes = el['minutes']
code_stats[el['name']] = ''
if hours > 0:

View file

@ -37,8 +37,8 @@
<p class="thin">Development</p>
</div>
<div class="social pe-auto">
<div class="social-icons flex-row justify-content-center align-items-center" aria-label="GitHub">
<a class="btn-social" id="github-s" href="https://github.com/Mootfrost777" target="_blank">
<div class="social-icons flex-row justify-content-center align-items-center">
<a class="btn-social" id="github-s" href="https://github.com/Mootfrost777" target="_blank" aria-label="GitHub">
<svg class="github-s" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="100" viewBox="0 0 480 520" width="100">
<path id="pathGit" d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z" fill="#ffffff" style="fill: rgb(255, 255, 255);"/>
</svg>