reCoins Класация
+
reCoins Класация
-
{% for i, z in leaderboard.items %}
{% if forloop.counter == 1 %}
@@ -71,6 +69,7 @@ ul{
diff --git a/.gitignore b/.gitignore
index b098c584..03a92de2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ reValuate/db.sqlite3
*.sqlite3
*/media/*
*.pyc
+*.sqlite3
diff --git a/reValuate/home/views.py b/reValuate/home/views.py
index 41556408..e0eaefd9 100644
--- a/reValuate/home/views.py
+++ b/reValuate/home/views.py
@@ -5,6 +5,7 @@ from django.conf import settings
from users.models import User
import operator
from upload.models import Media
+import requests
def homePage(request):
iter_var = 0
@@ -35,13 +36,17 @@ def homePage(request):
all_balance.append(user.balanceValue)
print(f"{all_balance}")
limited_coins = settings.ALL_COINS - sum(all_balance)
+
+ github = requests.get("https://api.github.com/user/36108495").json()
+
context = {
"isCashier": Cashier,
"isProcessor": Processor,
"userQR":userQR,
"fullbalance": limited_coins,
"currencyTotal": sum(all_balance),
- "userBalance": userBalance
+ "userBalance": userBalance,
+ "github": f"https://github.com/{github['login']}",
}
diff --git a/reValuate/templates/base.html b/reValuate/templates/base.html
index 9aa3130b..6eb5bbdc 100644
--- a/reValuate/templates/base.html
+++ b/reValuate/templates/base.html
@@ -21,20 +21,22 @@