mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12: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):
|
def errorsAfterMidnight(func):
|
||||||
lt = time.localtime()
|
def wrapper():
|
||||||
if lt.tm_hour < 4:
|
lt = time.localtime()
|
||||||
print("test disabled around cutoff", func)
|
if lt.tm_hour < 4:
|
||||||
else:
|
print("test disabled around cutoff", func)
|
||||||
func()
|
else:
|
||||||
|
func()
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
def isNearCutoff():
|
def isNearCutoff():
|
||||||
|
|
Loading…
Reference in a new issue