Skip to content

Commit

Permalink
🥔🍘 ↝ [SSG-1 #54]: Merge pull request #54 from Signal-K/main
Browse files Browse the repository at this point in the history
🤹🏻🥔 ↝ [SSG-1]: This was a mistake
  • Loading branch information
Gizmotronn authored Sep 25, 2024
2 parents e3bb636 + bccf24e commit 0c1ae6c
Show file tree
Hide file tree
Showing 146 changed files with 46 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
__pycache__
.flaskenv.example

.DS_Store
/.DS_Store

node_modules
/node_modules
./node_modules
Expand Down
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
flask = "*"
psycopg2 = "*"
flask-sqlalchemy = "*"
lightkurve = "*"

[dev-packages]

[requires]
python_version = "3.9"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added buckets/telescope/telescope-sunspots/97152315.png
Binary file added buckets/telescope/telescope-sunspots/97154417.png
Binary file added buckets/telescope/telescope-sunspots/97187095.png
Binary file added buckets/telescope/telescope-sunspots/97188190.png
Binary file added buckets/telescope/telescope-sunspots/97191316.png
Binary file added buckets/telescope/telescope-sunspots/97195700.png
Binary file added buckets/telescope/telescope-sunspots/97196024.png
Binary file added buckets/telescope/telescope-sunspots/97197366.png
Binary file added buckets/telescope/telescope-sunspots/97198022.png
22 changes: 8 additions & 14 deletions buckets/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

# Initialize Supabase client
def init_supabase_client():
url = "http://127.0.0.1:54321" # Replace with your Supabase URL
key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0" # Replace with your key
url = "http://127.0.0.1:54321"
key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0"
return create_client(url, key)

# Upload file to Supabase bucket
def upload_file_to_supabase(supabase: Client, bucket_name: str, file_path: str, destination_path: str):
with open(file_path, "rb") as file:
try:
Expand All @@ -17,28 +16,23 @@ def upload_file_to_supabase(supabase: Client, bucket_name: str, file_path: str,
except Exception as e:
print(f"Failed to upload {file_path} -> {destination_path}: {e}")

# Recursive function to upload all files in directory
def upload_directory_to_supabase(supabase: Client, bucket_name: str, local_directory: str):
for root, dirs, files in os.walk(local_directory):
for file_name in files:
if file_name.startswith('.'):
# Skip hidden files (e.g., .DS_Store)
continue

file_path = os.path.join(root, file_name)

# Create relative path for Supabase storage to mirror local structure

relative_path = os.path.relpath(file_path, local_directory)
destination_path = Path(relative_path).as_posix() # Ensure path uses forward slashes

# Upload file
destination_path = Path(relative_path).as_posix()

upload_file_to_supabase(supabase, bucket_name, file_path, destination_path)

# Main function
def main():
supabase = init_supabase_client()
bucket_name = "clouds" # Use your Supabase bucket name
local_directory = "clouds" # Folder you want to upload (in this case, anomalies)
bucket_name = "zoodex"
local_directory = "zoodex"

upload_directory_to_supabase(supabase, bucket_name, local_directory)

Expand Down
File renamed without changes
File renamed without changes
Binary file added buckets/zoodex/zoodex-nestQuestGo/81565879-2.jpeg
44 changes: 20 additions & 24 deletions supabase/tables/anomalies.csv

Large diffs are not rendered by default.

0 comments on commit 0c1ae6c

Please sign in to comment.