File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/st_supabase_connection Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 5
5
from st_social_media_links import SocialMediaIcons
6
6
from streamlit .components .v1 import html as st_html
7
7
8
- from st_supabase_connection import SupabaseConnection , __version__ , execute_query
8
+ from st_supabase_connection import execute_query # noqa: F401
9
+ from st_supabase_connection import SupabaseConnection , __version__
9
10
10
11
VERSION = __version__
11
12
341
342
if bucket_id :
342
343
try :
343
344
current_props = st_supabase .get_bucket (bucket_id )
344
-
345
345
st .info ("Current properties fetched. Update values to update properties." )
346
346
col1 , col2 , col3 = st .columns (3 )
347
347
681
681
)
682
682
elif (
683
683
operation == "upload"
684
- and response [ "Key" ] == f"{ bucket_id } /{ destination_path .lstrip ('/' )} "
684
+ and response . full_path == f"{ bucket_id } /{ destination_path .lstrip ('/' )} "
685
685
):
686
686
try :
687
687
st .success (
688
- f"Uploaded **{ file .name } ** to **{ response [ 'Key' ] } **" ,
688
+ f"Uploaded **{ file .name } ** to **{ response . full_path } **" ,
689
689
icon = "✅" ,
690
690
)
691
691
except AttributeError :
692
692
st .success (
693
- f"Uploaded **{ file } ** to **{ response [ 'Key' ] } **" ,
693
+ f"Uploaded **{ file } ** to **{ response . full_path } **" ,
694
694
icon = "✅" ,
695
695
)
696
696
elif operation == "remove" :
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def upload(
192
192
"x-upsert" : overwrite ,
193
193
},
194
194
)
195
- return response . json ()
195
+ return response
196
196
197
197
def download (
198
198
self ,
@@ -374,9 +374,9 @@ def create_signed_urls(
374
374
data = response .json ()
375
375
for item in data :
376
376
if item ["signedURL" ]:
377
- item [
378
- " signedURL"
379
- ] = f" { self . client . storage . _client . base_url } { item [ 'signedURL' ]. lstrip ( '/' ) } "
377
+ item ["signedURL" ] = (
378
+ f" { self . client . storage . _client . base_url } { item [ ' signedURL' ]. lstrip ( '/' ) } "
379
+ )
380
380
381
381
return data
382
382
You can’t perform that action at this time.
0 commit comments