-
-
Notifications
You must be signed in to change notification settings - Fork 19
Do not ask to enter date when --forceDate is provided #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm yeah, I see how can be annoying when setting up multiple users for the first time. I'm trying to think what would be an elegant solution in this usecase, Right now the forceDate value can be one of the So, it would look like along the lines of this, force it just for one user (current behaviour):
Or, force a specific date for all users in your config:
If the date is present, it would be used to gather tweets from that date onwards, without asking for any input. Would that work for you? |
Thank you for your thoughtful reply.
Il 03/04/22 17:33, robertoszek ha scritto:
If the date is present, it would be used to gather tweets from that date onwards, without asking for any input.
Yes, this would be intuitive for me. Indeed that's how I thought this
flag already worked: I was running
pleroma-bot --forceDate 2022-04-03
No idea why I misunderstood the documentation this way, maybe just
wishful thinking.
|
I also included this change in 1.0.3rc8, feel free to give it a try:
It should work as you expected before (with the date format being YYYY-MM-DD):
|
Thank you! However I may have misunderstood what you meant: I see that duplicate toots are posted as the forced date takes precedence over the last toot, so I can't use that option twice for the same user. What I really want is perhaps to override this in the force_date() function:
I'd like to be able to pass a command line flag which will automatically select "continue", and maybe configure the timedelta. |
forceDate doesn't seem to take a username now, it wants something in the date format |
@realkinetix which version are you on? It expects the For example:
For a config such as this one:
|
Hmm. I've apparently fooled around enough with the version I'm using to have broken the breakage I was seeing. My apologies for not posting the version and output at the time. I am seeing 1.1.1rc1 via pip and 1.1.0 (from git master branch) behaving pretty much as you've shown. |
I have to populate a number of accounts for the first time, so it's annoying to have to require manual input like this:
Am I supposed to use --forceDate together with --skipChecks the first time? Currently I'm using a silly patch like this in _utils.py after
logger.info(date_msg)
:I don't quite understand what cli.py is trying to do here:
It feels like
date_pleroma
is never set to args.forceDate.The text was updated successfully, but these errors were encountered: