fixed windows related problems

This commit is contained in:
Your Name
2018-01-25 04:59:16 +01:00
committed by atlantispc_sheppy
parent 585a2ea40c
commit a4a259fefc
9 changed files with 204 additions and 80 deletions

View File

@@ -3,7 +3,10 @@ from config_parse import CFG
from datetime import datetime, timedelta
def between_dates(t,date1,date2):
return t if (date1 == None or date1 < t) and (date2 == None or date2 > t) else None
if (date1 == None or date1 <= t) and (date2 == None or date2 > t):
return True
else:
return False
def time_from_dbf(l,timeformat):
timeformat=None #dont need that here