Skip to content

Commit

Permalink
fix some more pods_dir issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nandajavarma committed Jun 30, 2024
1 parent 1f0a722 commit d498210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/indexer/posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
pod_dir = getenv("PODS_DIR", join(dir_path, 'pods'))

def load_posix(contributor, lang, theme):
posix_path = join(dir_path, 'pods', contributor, lang)
posix_path = join(pod_dir, contributor, lang)
pod_name = theme+'.u.'+contributor
posix = joblib.load(join(posix_path,pod_name+'.pos'))
return posix

def dump_posix(posindex, contributor, lang, theme):
posix_path = join(dir_path, 'pods', contributor, lang)
posix_path = join(pod_dir, contributor, lang)
pod_name = theme+'.u.'+contributor
joblib.dump(posindex, join(posix_path,pod_name+'.pos'))

Expand Down
2 changes: 1 addition & 1 deletion app/orchard/mk_urls_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def get_url_list_for_users(theme):
urls = []
url_theme = theme.replace(' ', '_')
hfile = join(pods_dir, url_theme + ".pears.txt")
hfile = join(pod_dir, url_theme + ".pears.txt")
f_out = open(hfile,'w', encoding='utf-8')
for url in Urls.query.filter(Urls.pod.contains(theme+'.u.')).all():
if not url.pod.startswith(theme+'.u.'):
Expand Down

0 comments on commit d498210

Please sign in to comment.