Skip to content

Commit

Permalink
configure config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RustamovAkrom committed Oct 25, 2024
1 parent 54a5d38 commit 778c156
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/config.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os

from dotenv import load_dotenv
from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())


class BaseConfig:
load_dotenv()

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
SECRET_KEY = str(os.getenv("SECRET_KEY")).encode("utf-8")
Expand Down
6 changes: 3 additions & 3 deletions app/templates/site/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h2>Skills</h2>
<div class="progress-bar-wrap">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ skill.procent }}" aria-valuemin="0" aria-valuemax="{{ skill.procent }}"></div>
</div>
</div><!-- End Skills Item -->
</div>
{% endfor %}
</div>

Expand All @@ -137,9 +137,9 @@ <h2>Skills</h2>
<div class="progress">
<span class="skill"><span>{{ skill.name }}</span> <i class="val">{{ skill.procent }}%</i></span>
<div class="progress-bar-wrap">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ skill.procent }}" aria-valuemin="0" aria-valuemax="{{ skill.procent }}"></div>
<div class="progress-bar" role="progressbar" aria-valuenow="{{ skill.procent }}" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div><!-- End Skills Item -->
</div>
{% endfor %}
</div>

Expand Down

0 comments on commit 778c156

Please sign in to comment.