Comments (9)
Why doesn't this just get merged?
from shreddit.
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.
The solution in #152 worked for me
from shreddit.
Downgraded to arrow 0.14.4 and it runs fine now for me, in the meantime.
from shreddit.
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.
Check out https://github.com/x89/Shreddit/pull/142/files
from shreddit.
When this is applied, the error then becomes:
ValueError: hour must be in 0..23
from shreddit.
I have the same issue as well. Is there a version I can downgrade to that works?
from shreddit.
I can confirm as well, 0.14.3 works fine for me too, thank you.
from shreddit.
Related Issues (20)
- Can't run, AttributeError HOT 6
- Updated to ubuntu 20 - get error HOT 3
- Issue with requirements file HOT 1
- Error when trying to clear a vote that cannot be cleared. HOT 1
- Read-Only File system? HOT 1
- Delete private messages? HOT 1
- [NOTE] My fork of this repo with updates still works fine HOT 3
- Can a Whitelist ID Example be added to the ReadMe or in the Shreddit.yml file? HOT 2
- Problem with Arrow library HOT 2
- Can't quite figure it out HOT 7
- This script removed my most recent comment even though I set a minimum age of 3 years HOT 1
- Suddenly failing HOT 11
- zsh: command not found when trying to setup cron
- TypeError
- whitelist seems to be ignored HOT 1
- mistakenly created
- Use my repo. This one has been broken for years. HOT 10
- I rewrote it in Rust HOT 1
- Could you do this for Twitter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shreddit.