Skip to content

Commit

Permalink
Chore/pic upload issue (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Dec 26, 2024
2 parents e2f6baf + e1c27c7 commit a078490
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions sefaria/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sefaria.system.logging as sefaria_logging
import os

from decoder import private_key_1
# from decoder import private_key_1
from dotenv import load_dotenv
from google_auth_oauthlib.flow import Flow

Expand Down Expand Up @@ -274,7 +274,7 @@
"type": "service_account",
"project_id": os.getenv("project_id"),
"private_key_id": os.getenv("private_key_id"),
"private_key": private_key_1,
"private_key": os.getenv("private_key").replace("\\n", "\n"),
"client_email": os.getenv("client_email"),
"client_id": os.getenv("client_id"),
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
Expand All @@ -284,6 +284,8 @@
"universe_domain": "googleapis.com"
}

print("H"*20, GOOGLE_APPLICATION_CREDENTIALS)


GEOIP_DATABASE = 'data/geoip/GeoLiteCity.dat'
GEOIPV6_DATABASE = 'data/geoip/GeoLiteCityv6.dat'
Expand Down
8 changes: 4 additions & 4 deletions sites/sefaria/site_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"he": "Pecha དཔེ་མཛོད།",
},
"SUPPORTED_TRANSLATION_LANGUAGES": ['en', 'es', 'fr', 'de'],
"COLLECTIONS_BUCKET": "pecha-collection-image",
"PROFILES_BUCKET": 'pecha-profile-picture',
"UGC_BUCKET": 'pecha-sheet-user-uploaded-picture',
"TOPICS_BUCKET": 'pecha-topic-picture'
"COLLECTIONS_BUCKET": "pecha-collection-img",
"PROFILES_BUCKET": 'pecha-profile-img',
"UGC_BUCKET": 'pecha-sheet-user-uploaded-img',
"TOPICS_BUCKET": 'pecha-topic-img'
}

0 comments on commit a078490

Please sign in to comment.