rr- / drill

A CLI program for learning things through spaced repetition. :dog:
MIT License
96 stars 14 forks source link

SAWarning appair in the command line #21

Open gioisco opened 2 years ago

gioisco commented 2 years ago

I installed drill with pip install drillsrs My first command was drill-srs --help and I recieved some errors

[giovanni@giovanni ~]$ drill-srs --help
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:95: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  first_answer_date = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:101: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  total_answer_count = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:107: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  correct_answer_count = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:114: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  incorrect_answer_count = sa.orm.column_property(
usage: drill-srs [-h]
                 {how-to, list-decks, create-deck, edit-deck, update-deck,
                 delete-deck, list-tags, add-tag, create-tag, edit-tag,
                 update-tag, delete-tag, list-cards, add-card, create-card,
                 edit-card, update-card, delete-card, study, learn, review,
                 stats, export, import} ...

Spaced repetition flashcard program for learning anything.

positional arguments:

    how-to                 show a mini-tutorial how to use
    list-decks             print all decks
    create-deck            create a new deck
    edit-deck (update-deck)
                           edit a single deck
    delete-deck            delete a whole deck
    list-tags              print all tags in a deck
    add-tag (create-tag)   add a new tag to a deck
    edit-tag (update-tag)  edit a single tag
    delete-tag             delete a tag from the deck
    list-cards             print all flashcards in a deck
    add-card (create-card)
                           add a new flashcard to a deck
    edit-card (update-card)
                           edit a single flashcard
    delete-card            delete a single flashcard
    study (learn)          begin a study session
    review                 begin a review session
    stats                  produce an HTML report about the chosen deck
    export                 export a deck to a JSON file
    import                 import a deck from a JSON file

options:
  -h, --help               show this help message and exit

After this I tried to create a deck and a card and the program seems work, ma every command drill-srs I digit I receive the errors above.

I use Fedora 35.

prkstaff commented 2 years ago

Same happen to me installing directly from pip, but cloning the repo worked.