Cleanup .pyc and .DS_Store, add new modules, remove legacy services
This commit is contained in:
@@ -39,11 +39,12 @@ def is_valid_tenant(tenant_id):
|
||||
raise EveAITenantInvalid(tenant_id)
|
||||
else:
|
||||
current_date = dt.now(tz=tz.utc).date()
|
||||
active_license = (License.query.filter_by(tenant_id=tenant_id)
|
||||
.filter(and_(License.start_date <= current_date,
|
||||
License.end_date >= current_date))
|
||||
.one_or_none())
|
||||
if not active_license:
|
||||
raise EveAINoActiveLicense(tenant_id)
|
||||
# TODO -> Check vervangen door Active License Period!
|
||||
# active_license = (License.query.filter_by(tenant_id=tenant_id)
|
||||
# .filter(and_(License.start_date <= current_date,
|
||||
# License.end_date >= current_date))
|
||||
# .one_or_none())
|
||||
# if not active_license:
|
||||
# raise EveAINoActiveLicense(tenant_id)
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user