Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Doesn't work... #9

Open
IdoPort1 opened this issue Feb 25, 2018 · 11 comments
Open

Doesn't work... #9

IdoPort1 opened this issue Feb 25, 2018 · 11 comments

Comments

@IdoPort1
Copy link

I have tried running your script as described in the README and it doesn't work (see image attached).
Moreover it tries to do the next days instead of the previous month, how can it be changed?

image

@nirizr
Copy link
Owner

nirizr commented Feb 25, 2018

Yes, it stopped working a few months back... probably because a change to the html forms by timewatch. Since I'm no longer using timewatch I didn't bother fixing it although it shouldn't be too difficult.
I'll happily accept PRs.

Regarding to month being populated, by default it the current month is assumed (use --month to change that) and a date offset is set to the 24th of the previous month (this is also configurable).

@Rommmmm
Copy link

Rommmmm commented Mar 19, 2020

Are you familiar with other working projects?

@nirizr
Copy link
Owner

nirizr commented Mar 19, 2020

Hi,
Unfortunately, no. If I had, I would've used it back when I needed this.

P.S.

Looking at the attached image again, this might be a logical flaw on my part.
I can make a stub at fixing it (or provide instructions) but I suspect, as this is more than 2 years old, other changes may be required.

@tobenary
Copy link
Collaborator

tobenary commented Mar 19, 2020 via email

@Rommmmm
Copy link

Rommmmm commented Mar 20, 2020 via email

@tobenary
Copy link
Collaborator

The issue is with dates with 15+ at the start punch date and 11 gets + 9 instead of punching from 9 to 11 and then continiue.

note - this it my first code that I also based my idea on Nir's code, but it's working for me...

WARNING:timewatch:Skipping parameter not listed in config: daysoff
 40%|████      | 8/20 [00:07<00:13,  1.09s/it]WARNING:timewatch:Failed punching in 9 times on 2020-03-09
 55%|█████▌    | 11/20 [00:16<00:16,  1.78s/it]WARNING:timewatch:Failed punching in 9 times on 2020-03-12
100%|██████████| 20/20 [00:31<00:00,  1.05s/it]

image

@tobenary
Copy link
Collaborator

2fa2f73

@tobenary
Copy link
Collaborator

@Rommmmm
The new code is working for you?

@Rommmmm
Copy link

Rommmmm commented Mar 24, 2020 via email

@Rommmmm
Copy link

Rommmmm commented Apr 19, 2020 via email

@tobenary
Copy link
Collaborator

tobenary commented Apr 24, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants