Code Monkey home page Code Monkey logo

automatic-attendance's Issues

stats borked

gh traffic data grabbed with api shows decrease in count for past 14th day from today. gh must be emptying data on more frequent, non-daily basis. Need to add check for key presence for at least the last 14th day. preferably all days except most recent

Don't use decorators

because it's only making things harder to read. simple for/while loops would be enough

TypeError: 'OrTrigger' object is not iterable

Job "decorator_start_end.<locals>.inner_decorator.<locals>.wrapper (trigger: or[cron[year='2023', month='7', day='10', hour='11', minute='10'], cron[year='2023', month='7', day='10', hour='11', minute
='15'], cron[year='2023', month='7', day='10', hour='11', minute='20'], cron[year='2023', month='7', day='10', hour='11', minute='25'], cron[year='2023', month='7', day='10', hour='11', minute='30'], 
cron[year='2023', month='7', day='10', hour='13', minute='1'], cron[year='2023', month='7', day='10', hour='13', minute='6'], cron[year='2023', month='7', day='10', hour='13', minute='11'], cron[year=
'2023', month='7', day='10', hour='13', minute='16'], cron[year='2023', month='7', day='10', hour='13', minute='21'], cron[year='2023', month='7', day='10', hour='15', minute='10'], cron[year='2023', 
month='7', day='10', hour='15', minute='15'], cron[year='2023', month='7', day='10', hour='15', minute='20'], cron[year='2023', month='7', day='10', hour='15', minute='25'], cron[year='2023', month='7
', day='10', hour='15', minute='30']], next run at: 2023-07-10 11:25:00 KST)" raised an exception
Traceback (most recent call last):
  File "C:\Users\jinmo\anaconda3\envs\fakezoom\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jinmo\Documents\GitHub\fake-attendance\fake_attendance\helper.py", line 21, in wrapper
    func(*args, **kwargs)
  File "C:\Users\jinmo\Documents\GitHub\fake-attendance\fake_attendance\fake_check_in.py", line 269, in run
    self.drop_runs_until(self.print_name, until)
  File "C:\Users\jinmo\Documents\GitHub\fake-attendance\fake_attendance\scheduler.py", line 136, in drop_runs_until
    self.reschedule(job_id, rescheduled_trigger, is_remove_job)
  File "C:\Users\jinmo\Documents\GitHub\fake-attendance\fake_attendance\scheduler.py", line 148, in reschedule
    print(rescheduled_trigger)
  File "C:\Users\jinmo\anaconda3\envs\fakezoom\Lib\site-packages\apscheduler\triggers\combining.py", line 95, in __str__
    return 'or[{}]'.format(', '.join(str(trigger) for trigger in self.triggers))
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'OrTrigger' object is not iterable

Probably this:
https://github.com/yjmd2222/fake-attendance/blob/23eea0acf88e85631609ff5f6f875d62375378af/fake_attendance/scheduler.py#L131
self.build_trigger() returns OrTrigger, and OrTrigger only accepts an iterable:
https://github.com/yjmd2222/fake-attendance/blob/23eea0acf88e85631609ff5f6f875d62375378af/fake_attendance/scheduler.py#L76-L85
So change it to

            rescheduled_trigger = self.build_trigger(new_time_sets)

maybe.

Wondering why it wasn't throwing errors when I was testing last weekend, and I'm looking at job the schedule of which still contains the past triggers. Is it showing the job that is not yet rescheduled? Most likely.

PyAutoGUI package issue

Related: a374cbd

Currently using fix by ngoldin: https://stackoverflow.com/a/76525123
Sooner or later the devs should fix this issue.

(Also waiting on stable version of Selenium and/or autodriver) V116에서 major incompatibility 생겨서 selenium, webdriver-manager 업그레이드로 해결한 것으로 추정. 관련: #71

소회의실 전환 중 Zoom 회의 창 자체 조절 불가 관련 에러

Traceback (most recent call last):
  File "C:\Users\jinmo\anaconda3\envs\autocheck\Lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\abc.py", line 77, in wrapper
    func(*args, **kwargs)
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\abc.py", line 51, in wrapper
    func(*args, **kwargs)
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\notify.py", line 105, in wrapper
    func(*args, **kwargs)
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\auto_check_in.py", line 310, in run
    is_qr = self.check_link_loop()
            ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\auto_check_in.py", line 139, in check_link_loop
    result = self.check_link(rect_resized)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\auto_check_in.py", line 156, in check_link
    self.resize_window(rect_resized)
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\auto_check_in.py", line 93, in resize_window
    self._resize_window_win32(rect, self.hwnd)
  File "C:\Users\jinmo\Documents\GitHub\automatic-attendance\auto_attendance\auto_check_in.py", line 69, in _resize_window_win32      
    win32gui.MoveWindow(hwnd, *rect, True)
pywintypes.error: (1400, 'MoveWindow', '잘못된 창 핸들입니다.')

QR image is too big

QR image on Zoom is too big that Screen QR Reader sometimes doesn't recognize it and says No code found.

May need to manipulate Zoom window size.

need to set zoom conf to foreground before checking qr

Problem: QR reading may fail if Zoom conference is behind Zoom main window.
I can't get it to recognize the full name of conference, and I thought I had a check to set it foreground, but it got lost?
Need to get this done in both main branch and macos branch

zoom update

zoom may require update from time to time and won't let you enter conference unless updated

chrome driver location change

webdriver_manager raises ValueError, so thinking of migrating to chromedriver_autoinstaller for good which only produces a warning when no driver found.

scheduler sometimes does not quit

Exiting scheduler does not terminate python3. It must have something to do with parallel computing that I have zero knowledge of.

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.