Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingest TXT: Pali Word #38

Closed
10 tasks done
deobald opened this issue Apr 18, 2021 · 0 comments
Closed
10 tasks done

Ingest TXT: Pali Word #38

deobald opened this issue Apr 18, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@deobald
Copy link
Member

deobald commented Apr 18, 2021

  • parse TXT file
  • add "looped" entries in db:
  • daily job to republish each card in a loop
  • why are there only 209 :looped-pali-words after ingest?
  • avoid duplicate publishing on the same day
  • count ( N / M ingested ) during ingestion
  • ensure empty audio URL
  • confirm API compatibility with mobile app
  • seed script to ingest TXT files
  • web UI to ingest TXT files? - not now

;; from pali_word/txt_job.clj — (old notes)

;; 1. lookup word by `:pali-word/pali`
;;    (a) lookup translation for the current language
;;    (b) add translation if (a) fails

;; 2. add word if (1) fails
;;    (a) lookup largest "looped" index
;;    (b) add "largest + 1" as index
;;        ...but if largest = nil, index is 0
;;    (c) download and attach audio

;; 3. daily job creates "published on today" cards at 00:00:00:
;;
;; (def looped-card-count 220)
;; (def days-since-epoch (t/days (t/between (t/epoch) (t/now))))
;; (def days-since-perl (- days-since-epoch 12902))
;; (def todays-word (mod days-since-perl looped-card-count))
@deobald deobald added the enhancement New feature or request label Apr 18, 2021
@deobald deobald added this to the v1 milestone Apr 18, 2021
@deobald deobald self-assigned this Apr 18, 2021
deobald added a commit that referenced this issue Apr 30, 2021
- some weird bugs I didn't have time to investigate, tracked on the
  issue: #38
@deobald deobald closed this as completed Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant