Should be added to if __name__ == "__main__" section.
Will also require a new argument in which the script should run as a service, and another variable setting the frequency at which the service should be run (defaults to 24 hrs).
If the service flag is set, that's when the while True stuff should come into play. If not, it should just mh.run() once.
Should be added to
if __name__ == "__main__"
section.Will also require a new argument in which the script should run as a service, and another variable setting the frequency at which the service should be run (defaults to 24 hrs).
If the service flag is set, that's when the
while True
stuff should come into play. If not, it should justmh.run()
once.