mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix errorsAfterMidnight
This commit is contained in:
parent
36ec7830a9
commit
ce2890ca15
1 changed files with 8 additions and 5 deletions
|
@ -64,11 +64,14 @@ testDir = os.path.dirname(__file__)
|
|||
|
||||
|
||||
def errorsAfterMidnight(func):
|
||||
lt = time.localtime()
|
||||
if lt.tm_hour < 4:
|
||||
print("test disabled around cutoff", func)
|
||||
else:
|
||||
func()
|
||||
def wrapper():
|
||||
lt = time.localtime()
|
||||
if lt.tm_hour < 4:
|
||||
print("test disabled around cutoff", func)
|
||||
else:
|
||||
func()
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
def isNearCutoff():
|
||||
|
|
Loading…
Reference in a new issue