Jul-02-2020, 04:36 PM
It would constantly loop so whilst it doesn't seem like the code would use up much resource it doesn't seem sensible.
I'd at least add a time delay to loop every 5 minutes or something. time.sleep(300) will but 5 minutes between each check.
There are better ways to do this but i'm unsure as to what your overall goal is but sleep function should help.
I'd at least add a time delay to loop every 5 minutes or something. time.sleep(300) will but 5 minutes between each check.
There are better ways to do this but i'm unsure as to what your overall goal is but sleep function should help.