Giter Site home page Giter Site logo

Comments (9)

jeremyjjbrown avatar jeremyjjbrown commented on June 12, 2024 5

Why doesn't this just get merged?

from shreddit.

andreasbrett avatar andreasbrett commented on June 12, 2024 4

When this is applied, the error then becomes:

ValueError: hour must be in 0..23

In shredder.py replace the arrow function "replace" with the arrow function "shift" and everything works as expected.

self._recent_cutoff = arrow.now().replace(hours=-self._hours)
self._nuke_cutoff = arrow.now().replace(hours=-self._nuke_hours)

becomes

self._recent_cutoff = arrow.now().shift(hours=-self._hours)
self._nuke_cutoff = arrow.now().shift(hours=-self._nuke_hours)

from shreddit.

Drugantibus avatar Drugantibus commented on June 12, 2024 3

The solution in #152 worked for me

from shreddit.

pixiekat avatar pixiekat commented on June 12, 2024 2

Downgraded to arrow 0.14.4 and it runs fine now for me, in the meantime.

from shreddit.

mbap avatar mbap commented on June 12, 2024 1

If you apply that it should work.

Alternatively:

     1 diff --git a/shreddit/shredder.py b/shreddit/shredder.py
      2 index c4633a0..6a02bf6 100644
      3 --- a/shreddit/shredder.py
      4 +++ b/shreddit/shredder.py
      5 @@ -30,8 +30,8 @@ class Shredder(object):
      6          if self._save_directory:
      7              self._r.config.store_json_result = True
      8
      9 -        self._recent_cutoff = arrow.now().replace(hours=-self._hours)
     10 -        self._nuke_cutoff = arrow.now().replace(hours=-self._nuke_hours)
     11 +        self._recent_cutoff = arrow.now().replace(hour=-self._hours)
     12 +        self._nuke_cutoff = arrow.now().replace(hour=-self._nuke_hours)
     13          if self._save_directory:
     14              if not os.path.exists(self._save_directory):
     15                  os.makedirs(self._save_directory)
(END)

from shreddit.

mbap avatar mbap commented on June 12, 2024

Check out https://github.com/x89/Shreddit/pull/142/files

from shreddit.

pixiekat avatar pixiekat commented on June 12, 2024

When this is applied, the error then becomes:

ValueError: hour must be in 0..23

from shreddit.

skorokithakis avatar skorokithakis commented on June 12, 2024

I have the same issue as well. Is there a version I can downgrade to that works?

from shreddit.

skorokithakis avatar skorokithakis commented on June 12, 2024

I can confirm as well, 0.14.3 works fine for me too, thank you.

from shreddit.

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.