updates + waybar update notification
This commit is contained in:
@@ -72,7 +72,10 @@ def read_cache():
|
||||
|
||||
def main():
|
||||
now = int(datetime.now().strftime("%H"))
|
||||
mtime = int(time.localtime(os.stat(json_cache).st_ctime).tm_hour)
|
||||
if os.path.exists(json_cache):
|
||||
mtime = int(time.localtime(os.stat(json_cache).st_ctime).tm_hour)
|
||||
else:
|
||||
mtime = now + 1
|
||||
|
||||
if (now % 2 == 0 and mtime < now) or not os.path.exists(json_cache):
|
||||
check()
|
||||
|
||||
Reference in New Issue
Block a user