Giter Club home page Giter Club logo

Comments (5)

Sakshisaraswat avatar Sakshisaraswat commented on July 26, 2024

hello everyone !! i want to solve this issue.
please help me where to start

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Hello @Sakshisaraswat,

For this issue we need to increment the SEQUENCE property of self.todo right here. self.todo is something like a dictionary, so you would have to get the value for the key "sequence" (or use 0 if it doesn't exist) and save it back increased by 1.

Also there's a property called LAST-MODIFIED that we should probably update too. It needs to be set to the current datetime (datetime.now()). However, instead of calling now() directly, I would do self.now = datetime.now() in FileTodo.__init__. This is useful because then we can replace self.now with a fixed value for testing purposes.

from todoman.

Sakshisaraswat avatar Sakshisaraswat commented on July 26, 2024

What should be the strategy to save the variable so that it does not reset at end of session?

from todoman.

untitaker avatar untitaker commented on July 26, 2024

You shouldn't have to do anything special. Do you have code that does reset?

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

@Sakshisaraswat todos are saved to disk, so any values we assign it (including SEQUENCE and LAST-MODIFIED are retained.

from todoman.

Related Issues (20)

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.