Ashhar commited on
Commit
397dfe3
1 Parent(s): 24e5a85

icon change

Browse files
Files changed (3) hide show
  1. app.py +2 -1
  2. helpers/imageCdn.py +3 -1
  3. helpers/sidebar.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ import utils as U
16
  from helpers.auth import runWithAuth
17
  from helpers.sidebar import showSidebar
18
  from helpers.activities import saveLatestActivity
19
- from helpers.imageCdn import getCdnUrl
20
 
21
  from dotenv import load_dotenv
22
  load_dotenv()
@@ -386,6 +386,7 @@ U.pprint("\n")
386
  U.pprint("\n")
387
 
388
  U.applyCommonStyles()
 
389
  st.title("Kommuneity Story Creator 🪄")
390
 
391
 
 
16
  from helpers.auth import runWithAuth
17
  from helpers.sidebar import showSidebar
18
  from helpers.activities import saveLatestActivity
19
+ from helpers.imageCdn import initCloudinary, getCdnUrl
20
 
21
  from dotenv import load_dotenv
22
  load_dotenv()
 
386
  U.pprint("\n")
387
 
388
  U.applyCommonStyles()
389
+ initCloudinary()
390
  st.title("Kommuneity Story Creator 🪄")
391
 
392
 
helpers/imageCdn.py CHANGED
@@ -4,7 +4,9 @@ import cloudinary.uploader
4
  import cloudinary.api
5
  import utils as U
6
 
7
- config = cloudinary.config(secure=True)
 
 
8
 
9
 
10
  def __getImageId(imagePath: str):
 
4
  import cloudinary.api
5
  import utils as U
6
 
7
+
8
+ def initCloudinary():
9
+ cloudinary.config(secure=True)
10
 
11
 
12
  def __getImageId(imagePath: str):
helpers/sidebar.py CHANGED
@@ -98,5 +98,5 @@ def showSidebar():
98
  ))
99
  localTime = updatedAt.astimezone(ZoneInfo("Asia/Kolkata")).strftime("%b %d, %I:%M %p IST")
100
  activityId = log["id"]
101
- if st.button(f"Saved {localTime}", key=f"activity_{activityId}", use_container_width=True):
102
  restoreUserActivity(log["id"])
 
98
  ))
99
  localTime = updatedAt.astimezone(ZoneInfo("Asia/Kolkata")).strftime("%b %d, %I:%M %p IST")
100
  activityId = log["id"]
101
+ if st.button(f"Saved {localTime}", key=f"activity_{activityId}", use_container_width=True):
102
  restoreUserActivity(log["id"])