Skip to content

Commit

Permalink
Staging (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsam authored Dec 26, 2024
2 parents c118c3f + 6d3db34 commit 613bcc9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 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'
}
5 changes: 3 additions & 2 deletions static/js/TextCategoryPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,14 @@ const MenuItem = ({href, nestLevel, title, heTitle, cats, onClick, enDesc, heDes

const TextMenuItem = ({item, categories, nestLevel, onClick}) => {
const [title, heTitle] = getRenderedTextTitleString(item.title, item.heTitle, categories);
console.log("title : ", title, heTitle)
return (
<MenuItem
href = {"/" + Sefaria.normRef(item.title)}
onClick = {onClick}
nestLevel = {nestLevel}
title = {title}
heTitle = {heTitle}
title = {item.title}
heTitle = {item.heTitle}
enDesc = {item.enShortDesc}
heDesc = {item.heShortDesc}
/>
Expand Down

0 comments on commit 613bcc9

Please sign in to comment.