Spaces:
Sleeping
Sleeping
Abhinav
commited on
chore: QoL changes
Browse files- pages/Emojis.py +3 -1
- pages/Loading_Screens.py +1 -1
- utils/wolvesville.py +3 -0
pages/Emojis.py
CHANGED
@@ -34,7 +34,9 @@ for item in collections[:5]:
|
|
34 |
if item.emojis != []:
|
35 |
with st.expander("See role icons"):
|
36 |
for emoji in item.emojis[:5]:
|
37 |
-
|
|
|
|
|
38 |
st.markdown(emoji.rarity.title())
|
39 |
st.markdown(
|
40 |
f'<img src="{emoji.urlPreview}" style="height: 100px; width:100px;"/>',
|
|
|
34 |
if item.emojis != []:
|
35 |
with st.expander("See role icons"):
|
36 |
for emoji in item.emojis[:5]:
|
37 |
+
name = emoji.name.title()
|
38 |
+
name = " ".join(name.split("_"))
|
39 |
+
st.subheader(name)
|
40 |
st.markdown(emoji.rarity.title())
|
41 |
st.markdown(
|
42 |
f'<img src="{emoji.urlPreview}" style="height: 100px; width:100px;"/>',
|
pages/Loading_Screens.py
CHANGED
@@ -16,6 +16,6 @@ for screen in screens[:5]:
|
|
16 |
)
|
17 |
|
18 |
rarity = screen.rarity.title()
|
19 |
-
st.
|
20 |
|
21 |
st.divider()
|
|
|
16 |
)
|
17 |
|
18 |
rarity = screen.rarity.title()
|
19 |
+
st.header(rarity)
|
20 |
|
21 |
st.divider()
|
utils/wolvesville.py
CHANGED
@@ -14,6 +14,9 @@ from utils.models import (
|
|
14 |
from dotenv import load_dotenv
|
15 |
from os import getenv
|
16 |
import requests
|
|
|
|
|
|
|
17 |
|
18 |
load_dotenv()
|
19 |
|
|
|
14 |
from dotenv import load_dotenv
|
15 |
from os import getenv
|
16 |
import requests
|
17 |
+
import requests_cache
|
18 |
+
|
19 |
+
requests_cache.install_cache('api_requests')
|
20 |
|
21 |
load_dotenv()
|
22 |
|