GithubHelp home page GithubHelp logo

glutanimate / reset-card-scheduling Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 114 KB

Fork of baitisj/anki-reset-card-scheduling with some added features and support for Anki 2.1

Home Page: https://ankiweb.net/shared/info/300884351

License: GNU Affero General Public License v3.0

Makefile 15.28% Python 69.23% Shell 15.49%
anki anki-flashcards anki-addon anki21

reset-card-scheduling's Introduction

Reset Card Scheduling Add-on for Anki

Anki add-on that allows you to reset the scheduling information / progress on select cards. Fork of Jeff Baitis' anki-reset-card-scheduling with support for Anki 2.1 and other smaller tweaks.

Table of Contents

Screenshots

Installation

AnkiWeb

Link to the add-on on AnkiWeb

Manual installation

Anki 2.0

  1. Go to ToolsAdd-onsOpen add-ons folder
  2. Find and delete Reset Card Scheduling.py and reset_card_scheduling if they already exist
  3. Download and extract the latest Anki 2.0 add-on release from the releases tab
  4. Move Reset Card Scheduling.py and reset_card_scheduling into the add-ons folder
  5. Restart Anki

Anki 2.1

  1. Go to ToolsAdd-onsOpen add-ons folder
  2. See if the reset_card_scheduling folder already exists
  3. If you would like to keep your settings thus far: Find the meta.json file contained within and copy it to a safe location.
  4. Proceed to delete the reset_card_scheduling folder
  5. Download and extract the latest Anki 2.1 add-on release from the releases tab
  6. Rename the extracted folder to reset_card_scheduling and move it into the add-ons directory
  7. Optional: Place the meta.json file back in the directory if you created a copy beforehand.
  8. Restart Anki

Documentation

For further information on the use of this add-on please check out the original add-on description.

License and Credits

Reset Card Scheduling is

Copyright © 2015-2016 Jeff Baitis

Copyright (c) 2018 Dmitry Mikheev

Copyright © 2018 Aristotelis P.

Licensed under the GNU AGPLv3.

reset-card-scheduling's People

Contributors

baitisj avatar glutanimate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dmgerman cmwfuchs

reset-card-scheduling's Issues

Error with Anki v23.10 (incl. fix/workaround)

After the v23.10 update the add-on doesn't work anymore.

Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-07 10:11:33

When loading Reset Card Scheduling:
Traceback (most recent call last):
  File "aqt.addons", line 244, in loadAddons
  File "C:\Users\username\AppData\Roaming\Anki2\addons21\300884351\__init__.py", line 15, in <module>
    from . import main
  File "C:\Users\username\AppData\Roaming\Anki2\addons21\300884351\main.py", line 21, in <module>
    from .consts import anki21
  File "C:\Users\username\AppData\Roaming\Anki2\addons21\300884351\consts.py", line 22, in <module>
    addon_path = os.path.dirname(__file__).decode(sys_encoding)
AttributeError: 'str' object has no attribute 'decode'

A user mentioned in a review to change the following line

addon_path = os.path.dirname(__file__).decode(sys_encoding)

to

image
https://ankiweb.net/shared/info/300884351

In Python 2, string objects expose a decode() function. In Python 3, however, you don't have to decode your strings they're stored in Unicode.

The new way to check versions - see https://forums.ankiweb.net/t/porting-tips-for-anki-23-10/35916

image

interval doesn't change

Prerequisite checklist

  • [ x] In case of a bug: Have you tried restarting Anki?
  • [ x] Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • [ x] Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • [x ] Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

When I press the reset button the interval doesn't change to be a new card.

[Be as specific as possible. Provide screenshots if you think they can help.]

How can we reproduce the problem?

[What were you doing when the problem occurred?]

  1. [First step]
  2. [Second step]
  3. [and so on...]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Reproducible?: [Can you reliably reproduce the issue by following the steps above?]

Version information

Anki

[Please head to HelpAbout Anki and Paste the version string here, e.g.:]

[Version 2.0.47]
[Qt 4.8.1 PyQt 4.9.1]

System

  • Operating system: [Windows/macOS/Linux]
  • Version: [e.g. 10, High Sierra, Ubuntu 18.04]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.